aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-10-09 18:43:57 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-10-09 18:45:17 +0800
commit71c55e1a4a3d23317978477f4647a75edf69d084 (patch)
tree4eae52c852a3a9ca2d68a8a72408bf0f8dce80d7 /share
parentd2f23e1df45f07fb4d716b07c40de7381e539b9d (diff)
web_config: send correct MIME type (and actually send it)
Diffstat (limited to 'share')
-rwxr-xr-xshare/tools/web_config/webconfig.py3
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