[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
1 changed files with 1 additions and 1 deletions

View File

@ -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