summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-28 15:37:19 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-28 15:37:19 (GMT)
commit1aec3f087e46518f88027338b6b344dd3105699e (patch)
tree9132ee370bc8582d3f8d4c0a14dbaea9505f77b5
parent43055425174a92855a8c1f3266dae00cadc6fa2c (diff)
downloadcpython-1aec3f087e46518f88027338b6b344dd3105699e.zip
cpython-1aec3f087e46518f88027338b6b344dd3105699e.tar.gz
cpython-1aec3f087e46518f88027338b6b344dd3105699e.tar.bz2
lowercase proxies env variables, for Windows.
-rw-r--r--Lib/urllib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index d241ad4..94ddbb5 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -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