Repair authentication
This commit is contained in:
parent
88d558f9fa
commit
2a9f37defb
@ -388,7 +388,7 @@ class Application:
|
||||
self.logger.info("%s refused" % (user or "Anonymous user"))
|
||||
status = client.UNAUTHORIZED
|
||||
realm = self.configuration.get("server", "realm")
|
||||
headers = headers.copy()
|
||||
headers = dict(headers)
|
||||
headers.update ({
|
||||
"WWW-Authenticate":
|
||||
"Basic realm=\"%s\"" % realm})
|
||||
|
Loading…
Reference in New Issue
Block a user