[WebUI] Use application/json in header

This commit is contained in:
Calum Lind 2018-10-09 18:11:07 +01:00
parent 6f06cd5ebc
commit c90cf301df

View File

@ -230,7 +230,7 @@ class JSON(resource.Resource, component.Component):
if request._disconnected: if request._disconnected:
return '' return ''
response = json.dumps(response) 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.write(compress(response.encode(), request))
request.finish() request.finish()
return server.NOT_DONE_YET return server.NOT_DONE_YET