mirror of
https://github.com/basicswap/basicswap.git
synced 2025-04-24 23:18:22 +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(
|
||||
json.dumps({"error": "Unauthorized"}).encode("utf-8")
|
||||
)
|
||||
return
|
||||
return b""
|
||||
else:
|
||||
self.send_response(302)
|
||||
self.send_header("Location", "/login")
|
||||
|
|
Loading…
Reference in a new issue