[Python-checkins] python/dist/src/Lib urllib2.py,1.72,1.73

loewis at users.sourceforge.net loewis at users.sourceforge.net
Tue Aug 3 14:59:58 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14620/Lib

Modified Files:
	urllib2.py 
Log Message:
Patch #994595: Recognize Basic auth even if other schemes are offered.
Will backport to 2.3.


Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** urllib2.py	11 Jul 2004 17:14:12 -0000	1.72
--- urllib2.py	3 Aug 2004 12:59:41 -0000	1.73
***************
*** 715,719 ****
          authreq = headers.get(authreq, None)
          if authreq:
!             mo = AbstractBasicAuthHandler.rx.match(authreq)
              if mo:
                  scheme, realm = mo.groups()
--- 715,719 ----
          authreq = headers.get(authreq, None)
          if authreq:
!             mo = AbstractBasicAuthHandler.rx.search(authreq)
              if mo:
                  scheme, realm = mo.groups()



More information about the Python-checkins mailing list