mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-23 17:48:30 +00:00
Small cosmetic improvements
This commit is contained in:
parent
86631e4ddd
commit
f87c16a42b
2 changed files with 3 additions and 6 deletions
|
@ -247,9 +247,8 @@ class Application:
|
|||
# Mask passwords
|
||||
mask_passwords = self.configuration.getboolean(
|
||||
"logging", "mask_passwords")
|
||||
authorization = request_environ.get(
|
||||
"HTTP_AUTHORIZATION", "").startswith("Basic")
|
||||
if mask_passwords and authorization:
|
||||
authorization = request_environ.get("HTTP_AUTHORIZATION", "")
|
||||
if mask_passwords and authorization.startswith("Basic"):
|
||||
request_environ["HTTP_AUTHORIZATION"] = "Basic **masked**"
|
||||
|
||||
return request_environ
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue