mirror of
https://github.com/basicswap/basicswap.git
synced 2025-05-06 12:52:17 +00:00
Return empty bytes after sending 401 response
This commit is contained in:
parent
2813ba7930
commit
6311eb6ba3
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ class HttpHandler(BaseHTTPRequestHandler):
|
||||||
self.wfile.write(
|
self.wfile.write(
|
||||||
json.dumps({"error": "Unauthorized"}).encode("utf-8")
|
json.dumps({"error": "Unauthorized"}).encode("utf-8")
|
||||||
)
|
)
|
||||||
return
|
return b""
|
||||||
else:
|
else:
|
||||||
self.send_response(302)
|
self.send_response(302)
|
||||||
self.send_header("Location", "/login")
|
self.send_header("Location", "/login")
|
||||||
|
|
Loading…
Reference in a new issue