mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
[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:
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user