[Python-checkins] python/dist/src/Lib urllib2.py, 1.77.2.1, 1.77.2.2
birkenfeld@users.sourceforge.net
birkenfeld at users.sourceforge.net
Wed Aug 24 22:30:48 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25953/Lib
Modified Files:
Tag: release24-maint
urllib2.py
Log Message:
Backport bug #1016563: Bug in urllib2 proxy auth
Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.77.2.1
retrieving revision 1.77.2.2
diff -u -d -r1.77.2.1 -r1.77.2.2
--- urllib2.py 9 Jan 2005 05:53:27 -0000 1.77.2.1
+++ urllib2.py 24 Aug 2005 20:30:35 -0000 1.77.2.2
@@ -582,7 +582,7 @@
if ':' in user_pass:
user, password = user_pass.split(':', 1)
user_pass = base64.encodestring('%s:%s' % (unquote(user),
- unquote(password)))
+ unquote(password))).strip()
req.add_header('Proxy-authorization', 'Basic ' + user_pass)
host = unquote(host)
req.set_proxy(host, type)
More information about the Python-checkins
mailing list