mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Bug 1016563: Bug in urllib2 proxy auth
This commit is contained in:
parent
b925602f16
commit
a5a2088dd7
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ class ProxyHandler(BaseHandler):
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue