SF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)
Make the regex case insensitive for some web sites which use Realm.
This commit is contained in:
parent
aa02c8441b
commit
853ddd5cb9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue