Don't need to unquote twice.

This commit is contained in:
Cory Benfield
2014-01-12 14:46:40 +00:00
parent 2f98ef1792
commit 5b4e9aff0e
-4
View 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)