mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue