diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-10-09 18:43:57 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-10-09 18:45:17 +0800 |
commit | 71c55e1a4a3d23317978477f4647a75edf69d084 (patch) | |
tree | 4eae52c852a3a9ca2d68a8a72408bf0f8dce80d7 /share | |
parent | d2f23e1df45f07fb4d716b07c40de7381e539b9d (diff) |
web_config: send correct MIME type (and actually send it)
Diffstat (limited to 'share')
-rwxr-xr-x | share/tools/web_config/webconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 9a308a11..c77d69b2 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 |