Procházet zdrojové kódy

Fix WWW-Authenticate header typo

master
JustAnotherArchivist před 3 roky
rodič
revize
0542c63e33
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py Zobrazit soubor

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


Načítá se…
Zrušit
Uložit