Don't need to unquote twice.
authorCory Benfield <lukasaoz@gmail.com>
Sun, 12 Jan 2014 14:46:40 +0000 (14:46 +0000)
committerCory Benfield <lukasaoz@gmail.com>
Sun, 12 Jan 2014 14:46:40 +0000 (14:46 +0000)
requests/adapters.py

index 43addb1b67bd2e7016e91d65609b3a9767a75bcb..dd10e9593386438b88874ea490de52cded208e82 100644 (file)
@@ -286,10 +286,6 @@ class HTTPAdapter(BaseAdapter):
         username, password = get_auth_from_url(proxy)
 
         if username and password:
-            # Proxy auth usernames and passwords will be urlencoded, we need
-            # to decode them.
-            username = unquote(username)
-            password = unquote(password)
             headers['Proxy-Authorization'] = _basic_auth_str(username,
                                                              password)