lowercase proxies env variables, for Windows.
This commit is contained in:
parent
4305542517
commit
1aec3f087e
|
@ -748,6 +748,7 @@ def getproxies():
|
|||
"""
|
||||
proxies = {}
|
||||
for name, value in os.environ.items():
|
||||
name = string.lower(name)
|
||||
if value and name[-6:] == '_proxy':
|
||||
proxies[name[:-6]] = value
|
||||
return proxies
|
||||
|
|
Loading…
Reference in New Issue