commit | a5a2088dd7ea5f4434a4266995b194da91b28b77 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Wed Aug 24 20:29:32 2005 +0000 |
committer | Georg Brandl <georg@python.org> | Wed Aug 24 20:29:32 2005 +0000 |
tree | 4aac7197d86024827f9b8815a7d8f1a03440fdfd | |
parent | b925602f169d47270a064cf9eb03e21706ed25c3 [diff] [blame] |
Bug 1016563: Bug in urllib2 proxy auth
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index e9fb396..e72f6a6 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py
@@ -585,7 +585,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)