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:
Neal Norwitz 2002-10-09 23:17:04 +00:00
parent aa02c8441b
commit 853ddd5cb9
1 changed files with 1 additions and 1 deletions

View File

@ -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