mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-02 14:21:32 +00:00
magic-proxy: Send headers on error (LP: #1829944)
This commit is contained in:
parent
24e39d6844
commit
367e9fbfeb
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
livecd-rootfs (2.578.4) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* magic-proxy: Send headers on error (LP: #1829944)
|
||||||
|
|
||||||
|
-- Robert C Jennings <robert.jennings@canonical.com> Tue, 21 May 2019 19:22:13 -0500
|
||||||
|
|
||||||
livecd-rootfs (2.578.3) disco; urgency=medium
|
livecd-rootfs (2.578.3) disco; urgency=medium
|
||||||
|
|
||||||
[ Robert C Jennings ]
|
[ Robert C Jennings ]
|
||||||
|
@ -843,6 +843,7 @@ class ProxyingHTTPRequestHandler(http.server.BaseHTTPRequestHandler):
|
|||||||
"""Return an HTTP error status and a message in the response body."""
|
"""Return an HTTP error status and a message in the response body."""
|
||||||
self.send_response(status)
|
self.send_response(status)
|
||||||
self.send_header("Content-Type", "text/plain; charset=utf-8")
|
self.send_header("Content-Type", "text/plain; charset=utf-8")
|
||||||
|
self.end_headers()
|
||||||
self.wfile.write(message.encode("utf-8"))
|
self.wfile.write(message.encode("utf-8"))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user