From 0542c63e335e0b3659546a916b8db1ee681a11f8 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Wed, 14 Oct 2020 22:23:00 +0000 Subject: [PATCH] Fix WWW-Authenticate header typo --- irclog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irclog.py b/irclog.py index 269db0a..9fb309c 100644 --- a/irclog.py +++ b/irclog.py @@ -859,7 +859,7 @@ class WebServer: authHeader = request.headers.get('Authorization') if not authHeader or authHeader != auth: self.logger.info(f'Bad request {id(request)}: authentication failed: {authHeader!r} != {auth}') - raise aiohttp.web.HTTPUnauthorized(headers = {'WWW-Authenticate': f'Basic, realm="{request.match_info["path"]}"'}) + raise aiohttp.web.HTTPUnauthorized(headers = {'WWW-Authenticate': f'Basic realm="{request.match_info["path"]}"'}) async def _channel_handler(self, request, handler): await self._check_valid_channel(request)