diff options
author | cperciva <cperciva@FreeBSD.org> | 2006-05-05 04:47:00 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2006-05-05 04:47:00 +0000 |
commit | 13f1ac162a27af3a3141b04d4572de3ac5ed73c0 (patch) | |
tree | 5b38840f936a3dea4fe6627bd1e84306ebf1d11a /usr.sbin/portsnap/phttpget | |
parent | f294a372d1dfa5cc5f2721eef27a517e72e52b69 (diff) | |
download | FreeBSD-src-13f1ac162a27af3a3141b04d4572de3ac5ed73c0.zip FreeBSD-src-13f1ac162a27af3a3141b04d4572de3ac5ed73c0.tar.gz |
Allow the HTTP_PROXY environment variable to be (mis)spelled as
"http_proxy", since some people apparently do this and fetch(3)
allows it.
Diffstat (limited to 'usr.sbin/portsnap/phttpget')
-rw-r--r-- | usr.sbin/portsnap/phttpget/phttpget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/portsnap/phttpget/phttpget.c b/usr.sbin/portsnap/phttpget/phttpget.c index 64d983d..6845505 100644 --- a/usr.sbin/portsnap/phttpget/phttpget.c +++ b/usr.sbin/portsnap/phttpget/phttpget.c @@ -126,6 +126,8 @@ readenv(void) char *proxy_auth_pass = NULL; env_HTTP_PROXY = getenv("HTTP_PROXY"); + if (env_HTTP_PROXY == NULL) + env_HTTP_PROXY = getenv("http_proxy"); if (env_HTTP_PROXY != NULL) { if (strncmp(env_HTTP_PROXY, "http://", 7) == 0) env_HTTP_PROXY += 7; |