Skip to content

Commit 44bc539

Browse files
committed
Resolve case 6567: make the proxy check accept uppercase
1 parent 3e44ac6 commit 44bc539

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cache_config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@
8888
# PROXY CONFIGURATION
8989
# Python http_proxy incompatibility for http_proxy:
9090
# handle the case where it does not start with http://
91-
if os.environ.has_key("http_proxy") and os.environ["http_proxy"][:7] !="http://":
92-
os.environ["http_proxy"]="http://"+os.environ["http_proxy"]
91+
for http_proxy in ['http_proxy', 'HTTP_PROXY']:
92+
if os.environ.has_key(http_proxy) and os.environ[http_proxy][:7] !="http://":
93+
os.environ[http_proxy]="http://"+os.environ[http_proxy]
94+
break
9395

9496
# SEED CONFIGURATION
9597
random.seed()

0 commit comments

Comments
 (0)