[WebUI] Use application/json in header
This commit is contained in:
parent
6f06cd5ebc
commit
c90cf301df
|
@ -230,7 +230,7 @@ class JSON(resource.Resource, component.Component):
|
|||
if request._disconnected:
|
||||
return ''
|
||||
response = json.dumps(response)
|
||||
request.setHeader(b'content-type', b'application/x-json')
|
||||
request.setHeader(b'content-type', b'application/json')
|
||||
request.write(compress(response.encode(), request))
|
||||
request.finish()
|
||||
return server.NOT_DONE_YET
|
||||
|
|
Loading…
Reference in New Issue