forked from home-assistant/core
Unnecessary check removed from httpinterface
This commit is contained in:
@@ -240,7 +240,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|||||||
|
|
||||||
if use_json:
|
if use_json:
|
||||||
self.send_response(response_code)
|
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.end_headers()
|
||||||
|
|
||||||
self.wfile.write(json.dumps({'status': status, 'message':message}))
|
self.wfile.write(json.dumps({'status': status, 'message':message}))
|
||||||
|
Reference in New Issue
Block a user