summaryrefslogtreecommitdiff
path: root/src/IO/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/IO/http.c')
-rw-r--r--src/IO/http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index 56a1b3a8..afeb6d71 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -82,8 +82,10 @@ int a_Http_init(void)
if (env_proxy && strlen(env_proxy))
HTTP_Proxy = a_Url_new(env_proxy, NULL);
- if (!HTTP_Proxy && prefs.http_proxy)
- HTTP_Proxy = a_Url_dup(prefs.http_proxy);
+ if (!HTTP_Proxy && prefs.http_proxy) {
+ HTTP_Proxy = a_Url_new(prefs.http_proxy, NULL);
+ setenv("http_proxy", URL_STR(HTTP_Proxy), 1);
+ }
/* This allows for storing the proxy password in "user:passwd" format
* in dillorc, but as this constitutes a security problem, it was disabled.