From c256825de6b77027290bd29dedd756fe8567eaef Mon Sep 17 00:00:00 2001 From: Hyungtae Kim Date: Thu, 20 Oct 2016 13:38:03 -0700 Subject: [PATCH] Content Type of JSON response should not have a charset --- sanic/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/response.py b/sanic/response.py index 0b744c0a..be471078 100644 --- a/sanic/response.py +++ b/sanic/response.py @@ -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):