From a5a2088dd7ea5f4434a4266995b194da91b28b77 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 24 Aug 2005 20:29:32 +0000 Subject: Bug 1016563: Bug in urllib2 proxy auth --- Lib/urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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) -- cgit v0.12