From 1804e2a81815566b69c6a54aff89eaf4a57c8e65 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 7 Mar 2001 04:45:55 +0000 Subject: Support lower-case versions of the proxy environment variables. PR: bin/25494 --- lib/libfetch/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libfetch/http.c') 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) -- cgit v1.1