Content Type of JSON response should not have a charset
This commit is contained in:
parent
cab43503d0
commit
c256825de6
|
@ -122,7 +122,7 @@ class HTTPResponse:
|
|||
|
||||
def json(body, status=200, headers=None):
|
||||
return HTTPResponse(ujson.dumps(body), headers=headers, status=status,
|
||||
content_type="application/json; charset=utf-8")
|
||||
content_type="application/json")
|
||||
|
||||
|
||||
def text(body, status=200, headers=None):
|
||||
|
|
Loading…
Reference in New Issue
Block a user