From ed305700df8819040fba8d2f60aee495a0b75d56 Mon Sep 17 00:00:00 2001 From: Martin Poirier <theeth@yahoo.com> Date: Tue, 10 Jan 2012 23:47:31 +0000 Subject: [PATCH] =?UTF-8?q?netrender=20typo=20prevented=20returning=20prop?= =?UTF-8?q?er=20content-type=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Philippe Van Hecke for bug finding. --- netrender/master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netrender/master.py b/netrender/master.py index 65ff35839..a43ba9a27 100644 --- a/netrender/master.py +++ b/netrender/master.py @@ -252,7 +252,7 @@ class RenderHandler(http.server.BaseHTTPRequestHandler): def send_head(self, code = http.client.OK, headers = {}, content = "application/octet-stream"): self.send_response(code) - if code != http.client.OK and content: + if code == http.client.OK and content: self.send_header("Content-type", content) for key, value in headers.items(): -- GitLab