summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-03-07 04:45:55 +0000
committerdes <des@FreeBSD.org>2001-03-07 04:45:55 +0000
commit1804e2a81815566b69c6a54aff89eaf4a57c8e65 (patch)
treef8c637bb9a7cdda4f389a9f7202ee2a6629e0622 /lib/libfetch/http.c
parent9c1fb038d7d49d0f13914c9cf74abbaf2252f87c (diff)
downloadFreeBSD-src-1804e2a81815566b69c6a54aff89eaf4a57c8e65.zip
FreeBSD-src-1804e2a81815566b69c6a54aff89eaf4a57c8e65.tar.gz
Support lower-case versions of the proxy environment variables.
PR: bin/25494
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 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)
OpenPOWER on IntegriCloud