mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-19 19:10:54 +00:00
Merge branch 'master' of github.com:Kozea/radicale
This commit is contained in:
commit
656680d998
1 changed files with 2 additions and 2 deletions
|
@ -251,8 +251,8 @@ class Application:
|
|||
# Ask authentication backend to check rights
|
||||
authorization = environ.get("HTTP_AUTHORIZATION", None)
|
||||
|
||||
if authorization:
|
||||
authorization = authorization.lstrip("Basic").strip()
|
||||
if authorization and authorization.startswith("Basic"):
|
||||
authorization = authorization[len("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