Skip to content

Commit 853ddd5

Browse files
committed
SF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)
Make the regex case insensitive for some web sites which use Realm.
1 parent aa02c84 commit 853ddd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/urllib2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def find_user_password(self, realm, authuri):
572572

573573
class AbstractBasicAuthHandler:
574574

575-
rx = re.compile('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"')
575+
rx = re.compile('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', re.I)
576576

577577
# XXX there can actually be multiple auth-schemes in a
578578
# www-authenticate header. should probably be a lot more careful

0 commit comments

Comments
 (0)