Merge pull request #2033 from cbenhagen/patch-1

Fix basic_auth with Python 3
This commit is contained in:
mdipierro
2018-11-01 08:19:00 -07:00
committed by GitHub
+1 -1
View File
@@ -2252,7 +2252,7 @@ class Auth(AuthAPI):
if basic_auth_realm:
raise http_401
return (True, False, False)
(username, sep, password) = base64.b64decode(basic[6:]).partition(':')
(username, sep, password) = base64.b64decode(basic[6:]).partition(b':')
is_valid_user = sep and self.login_bare(username, password)
if not is_valid_user and basic_auth_realm:
raise http_401