aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--djangopypi/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangopypi/views.py b/djangopypi/views.py
index 296ecea..bcba5ae 100644
--- a/djangopypi/views.py
+++ b/djangopypi/views.py
@@ -74,7 +74,7 @@ def parse_weird_post_data(data):
74 74
75def login_basic_auth(request): 75def login_basic_auth(request):
76 authentication = request.META.get("HTTP_AUTHORIZATION") 76 authentication = request.META.get("HTTP_AUTHORIZATION")
77 if not auth: 77 if not authentication:
78 return 78 return
79 (authmeth, auth) = authentication.split(' ', 1) 79 (authmeth, auth) = authentication.split(' ', 1)
80 if authmeth.lower() != "basic": 80 if authmeth.lower() != "basic":