From 367e9fbfebf18b2b3a1cc6a623d2d96bfc1ae7cc Mon Sep 17 00:00:00 2001 From: Robert C Jennings Date: Mon, 6 May 2019 20:31:27 -0500 Subject: [PATCH] magic-proxy: Send headers on error (LP: #1829944) --- debian/changelog | 6 ++++++ magic-proxy | 1 + 2 files changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index aeb46b61..cd070131 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.578.4) UNRELEASED; urgency=medium + + * magic-proxy: Send headers on error (LP: #1829944) + + -- Robert C Jennings Tue, 21 May 2019 19:22:13 -0500 + livecd-rootfs (2.578.3) disco; urgency=medium [ Robert C Jennings ] diff --git a/magic-proxy b/magic-proxy index 50481e28..e2d0c28d 100755 --- a/magic-proxy +++ b/magic-proxy @@ -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"))