Return empty bytes after sending 401 response

This commit is contained in:
cryptoguard 2025-04-01 15:47:27 -04:00
parent 2813ba7930
commit 6311eb6ba3

View file

@ -649,7 +649,7 @@ class HttpHandler(BaseHTTPRequestHandler):
self.wfile.write(
json.dumps({"error": "Unauthorized"}).encode("utf-8")
)
return
return b""
else:
self.send_response(302)
self.send_header("Location", "/login")