Merge pull request #82 from htkm/81
Content Type of JSON response should not have a charset
This commit is contained in:
commit
8f6e5a1263
|
@ -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