We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e44ac6 commit 44bc539Copy full SHA for 44bc539
cache_config.py
@@ -88,8 +88,10 @@
88
# PROXY CONFIGURATION
89
# Python http_proxy incompatibility for http_proxy:
90
# 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"]
+for http_proxy in ['http_proxy', 'HTTP_PROXY']:
+ 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
95
96
# SEED CONFIGURATION
97
random.seed()
0 commit comments