[Python-checkins] python/dist/src/Lib urllib2.py,1.34,1.35
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Wed, 09 Oct 2002 16:17:07 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv20310/Lib
Modified Files:
urllib2.py
Log Message:
SF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)
Make the regex case insensitive for some web sites which use Realm.
Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** urllib2.py 13 Aug 2002 13:59:55 -0000 1.34
--- urllib2.py 9 Oct 2002 23:17:04 -0000 1.35
***************
*** 573,577 ****
class AbstractBasicAuthHandler:
! rx = re.compile('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"')
# XXX there can actually be multiple auth-schemes in a
--- 573,577 ----
class AbstractBasicAuthHandler:
! rx = re.compile('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', re.I)
# XXX there can actually be multiple auth-schemes in a