mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Fix authentication with Python 3 (see #70)
This commit is contained in:
parent
f253b23a67
commit
a617c4db26
2 changed files with 2 additions and 3 deletions
|
@ -271,8 +271,7 @@ class Application(object):
|
|||
authorization = environ.get("HTTP_AUTHORIZATION", None)
|
||||
|
||||
if authorization:
|
||||
authorization = \
|
||||
authorization.decode("ascii").lstrip("Basic").strip()
|
||||
authorization = authorization.lstrip("Basic").strip()
|
||||
user, password = self.decode(base64.b64decode(
|
||||
authorization.encode("ascii")), environ).split(":", 1)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue