diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-03-07 04:45:55 +0000 | 
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-03-07 04:45:55 +0000 | 
| commit | 4cee73c80f52cef57f3e95357ada6ea352be14e2 (patch) | |
| tree | 4c6d3d0aa47837865bf2b8797e59ac5c4824cd99 /lib/libfetch/http.c | |
| parent | f227364a17f1426b7e026a42c67e419fcef67b06 (diff) | |
Notes
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 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)  | 
