Commit 9b8314b4 authored by Neal Norwitz's avatar Neal Norwitz

SF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)

Make the regex case insensitive for some web sites which use Realm.
parent c7dc739e
...@@ -572,7 +572,7 @@ class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr): ...@@ -572,7 +572,7 @@ class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr):
class AbstractBasicAuthHandler: 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 # XXX there can actually be multiple auth-schemes in a
# www-authenticate header. should probably be a lot more careful # www-authenticate header. should probably be a lot more careful
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment