From: Guido van Rossum Date: Wed, 28 May 1997 15:37:19 +0000 (+0000) Subject: lowercase proxies env variables, for Windows. X-Git-Tag: v1.5a3~425 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1aec3f087e46518f88027338b6b344dd3105699e;p=thirdparty%2FPython%2Fcpython.git lowercase proxies env variables, for Windows. --- diff --git a/Lib/urllib.py b/Lib/urllib.py index d241ad46ff35..94ddbb5343ef 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