From 71c55e1a4a3d23317978477f4647a75edf69d084 Mon Sep 17 00:00:00 2001 From: David Adam Date: Thu, 9 Oct 2014 18:43:57 +0800 Subject: [PATCH] web_config: send correct MIME type (and actually send it) --- share/tools/web_config/webconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 9a308a11a..c77d69b26 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -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