aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/authentication.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/http/authentication.py')
-rw-r--r--netlib/http/authentication.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/http/authentication.py b/netlib/http/authentication.py
index 29b9eb3c..fe1f0d14 100644
--- a/netlib/http/authentication.py
+++ b/netlib/http/authentication.py
@@ -62,10 +62,10 @@ class BasicProxyAuth(NullProxyAuth):
del headers[self.AUTH_HEADER]
def authenticate(self, headers):
- auth_value = headers.get(self.AUTH_HEADER, [])
+ auth_value = headers.get(self.AUTH_HEADER)
if not auth_value:
return False
- parts = parse_http_basic_auth(auth_value[0])
+ parts = parse_http_basic_auth(auth_value)
if not parts:
return False
scheme, username, password = parts