mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-10 02:41:15 +00:00
magic-proxy: Send headers on error
This commit is contained in:
parent
c10042acb0
commit
4c113d4906
@ -843,6 +843,7 @@ class ProxyingHTTPRequestHandler(http.server.BaseHTTPRequestHandler):
|
||||
"""Return an HTTP error status and a message in the response body."""
|
||||
self.send_response(status)
|
||||
self.send_header("Content-Type", "text/plain; charset=utf-8")
|
||||
self.end_headers()
|
||||
self.wfile.write(message.encode("utf-8"))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user