From 065174db7ad37e5759255df7f4483caa7c8a317f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 30 Sep 2013 22:00:49 -0700 Subject: [PATCH] Unnecessary check removed from httpinterface --- homeassistant/httpinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/httpinterface.py b/homeassistant/httpinterface.py index 307f8c20796..e40abe6c0db 100644 --- a/homeassistant/httpinterface.py +++ b/homeassistant/httpinterface.py @@ -240,7 +240,7 @@ class RequestHandler(BaseHTTPRequestHandler): if use_json: self.send_response(response_code) - self.send_header('Content-type','application/json' if use_json else 'text/html') + self.send_header('Content-type','application/json') self.end_headers() self.wfile.write(json.dumps({'status': status, 'message':message}))