Merge pull request #82 from htkm/81

Content Type of JSON response should not have a charset
This commit is contained in:
Channel Cat
2016-10-20 21:45:43 -07:00
committed by GitHub

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