diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 031f0246d33..2b01e8cb7f9 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -572,7 +572,7 @@ class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr): class AbstractBasicAuthHandler: - rx = re.compile('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"') + rx = re.compile('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', re.I) # XXX there can actually be multiple auth-schemes in a # www-authenticate header. should probably be a lot more careful