Unnecessary check removed from httpinterface
This commit is contained in:
1 parent
5d4136cf29
commit
065174db7a
1 file changed
+1
-1
@@ -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}))
|
||||
|
||||
Reference in new issue
Block a user