Skip to content
Snippets Groups Projects
Commit ed305700 authored by Martin Poirier's avatar Martin Poirier
Browse files

netrender

typo prevented returning proper content-typeé

Thanks to Philippe Van Hecke for bug finding.
parent cd6725df
No related branches found
No related tags found
No related merge requests found
...@@ -252,7 +252,7 @@ class RenderHandler(http.server.BaseHTTPRequestHandler): ...@@ -252,7 +252,7 @@ class RenderHandler(http.server.BaseHTTPRequestHandler):
def send_head(self, code = http.client.OK, headers = {}, content = "application/octet-stream"): def send_head(self, code = http.client.OK, headers = {}, content = "application/octet-stream"):
self.send_response(code) self.send_response(code)
if code != http.client.OK and content: if code == http.client.OK and content:
self.send_header("Content-type", content) self.send_header("Content-type", content)
for key, value in headers.items(): for key, value in headers.items():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment