web_config: send correct MIME type (and actually send it)

This commit is contained in:
David Adam 2014-10-09 18:43:57 +08:00
parent d2f23e1df4
commit 71c55e1a4a

View file

@ -751,7 +751,8 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
# Return valid output
self.send_response(200)
self.send_header('Content-type','text/html')
self.send_header('Content-type','application/json')
self.end_headers()
self.write_to_wfile('\n')
# Output JSON