diff options
| author | Georg Brandl <georg@python.org> | 2005-08-24 20:29:32 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2005-08-24 20:29:32 +0000 |
| commit | a5a2088dd7ea5f4434a4266995b194da91b28b77 (patch) | |
| tree | 4aac7197d86024827f9b8815a7d8f1a03440fdfd /Lib | |
| parent | b925602f169d47270a064cf9eb03e21706ed25c3 (diff) | |
| download | cpython-git-a5a2088dd7ea5f4434a4266995b194da91b28b77.tar.gz | |
Bug 1016563: Bug in urllib2 proxy auth
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index e9fb3966b6..e72f6a61c1 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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) |
