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}))