diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-10-09 23:17:04 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-10-09 23:17:04 (GMT) |
commit | 853ddd5cb96981966b935ed75bf8af0cfd0bee24 (patch) | |
tree | 9dce3e17d173af218829d9bec9849ac313d65f36 /Lib/urllib2.py | |
parent | aa02c8441b368f1a9d4ae9c5203061d8b1627cf0 (diff) | |
download | cpython-853ddd5cb96981966b935ed75bf8af0cfd0bee24.zip cpython-853ddd5cb96981966b935ed75bf8af0cfd0bee24.tar.gz cpython-853ddd5cb96981966b935ed75bf8af0cfd0bee24.tar.bz2 |
SF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)
Make the regex case insensitive for some web sites which use Realm.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 031f024..2b01e8c 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 |