Content Type of JSON response should not have a charset

This commit is contained in:
Hyungtae Kim 2016-10-20 13:38:03 -07:00
parent cab43503d0
commit c256825de6

View File

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