summaryrefslogtreecommitdiff
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2001-03-15 23:54:09 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2001-03-15 23:54:09 +0000
commitf20bb260b84f6cd0fcafb3ac48fa6914e6bc6176 (patch)
treec59820b5f25f5557560d6208891926544b6a3600 /lib/libfetch/http.c
parent2d2b1688b11ea6987942b3e0ae030bfbd3bf37cc (diff)
Notes
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r--lib/libfetch/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 9c4bebb3f104..5c22097987d1 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)