fixed middleware doc comments
@@ -52,8 +52,8 @@ async def optional_auth_middleware(app, handler):
async def auth_middleware(app, handler):
async def middleware(request):
# if `rest_api` config has `authentication` set to mandatory then:
- # request must carry auth header or should reuturn 403: Forbidden,
- # actual header will be checked too and if bad then 401: unauthorized will be returned
+ # request must carry auth header,
+ # actual value will be checked too and if bad then 401: unauthorized will be returned
_logger.info("Received %s request for %s", request.method, request.path)
request.is_auth_optional = False
