style: add missing space
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>pull/57/head
parent
f57c0c5ca1
commit
e9c97ac03b
2
main.py
2
main.py
|
|
@ -56,7 +56,7 @@ def check_napcat_server_token(conn, request):
|
|||
return None
|
||||
auth_header = request.headers.get("Authorization")
|
||||
if auth_header != f"Bearer {token}":
|
||||
return Server.Response(http.HTTPStatus.UNAUTHORIZED,"", headers=Server.Headers([("Content-Type", "text/plain")]), body=b"Unauthorized\n")
|
||||
return Server.Response(http.HTTPStatus.UNAUTHORIZED, "", headers=Server.Headers([("Content-Type", "text/plain")]), body=b"Unauthorized\n")
|
||||
return None
|
||||
|
||||
async def napcat_server():
|
||||
|
|
|
|||
Loading…
Reference in New Issue