diff options
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r-- | lib/libfetch/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 9c4bebb..5c22097 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -651,7 +651,8 @@ _http_get_proxy() struct url *purl; char *p; - if ((p = getenv("HTTP_PROXY")) && (purl = fetchParseURL(p))) { + if (((p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) && + (purl = fetchParseURL(p))) { if (!*purl->scheme) strcpy(purl->scheme, SCHEME_HTTP); if (!purl->port) |