From fdf849744b4bc64d58bfdfb89b715bf355a63f08 Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Tue, 10 Apr 2018 07:08:22 +0700 Subject: [PATCH] Fix #238 --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 4df2cee..fca2623 100644 --- a/app/views.py +++ b/app/views.py @@ -118,7 +118,7 @@ def login_via_authorization_header(request): if auth_header: auth_header = auth_header.replace('Basic ', '', 1) try: - auth_header = base64.b64decode(auth_header) + auth_header = str(base64.b64decode(auth_header), 'utf-8') username,password = auth_header.split(":") except TypeError as e: return None