Skip to content

Commit

Permalink
Fix exception whenever user access unknown realm (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalemas committed May 24, 2021
1 parent 7b39262 commit a37420f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsgidav/http_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def __call__(self, environ, start_response):
def send_basic_auth_response(self, environ, start_response):
realm = self.domain_controller.get_domain_realm(environ["PATH_INFO"], environ)
_logger.debug("401 Not Authorized for realm '{}' (basic)".format(realm))
wwwauthheaders = 'Basic realm="' + realm + '"'
wwwauthheaders = 'Basic realm="{}"'.format(realm)

body = compat.to_bytes(self.error_message_401)
start_response(
Expand Down

0 comments on commit a37420f

Please sign in to comment.