From 1aec3f087e46518f88027338b6b344dd3105699e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 28 May 1997 15:37:19 +0000 Subject: lowercase proxies env variables, for Windows. --- Lib/urllib.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12