Explorar o código

Repair authentication

Unrud %!s(int64=9) %!d(string=hai) anos
pai
achega
2a9f37defb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      radicale/__init__.py

+ 1 - 1
radicale/__init__.py

@@ -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})