Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Type of JSON response should not have a charset #81

Closed
ustun opened this issue Oct 20, 2016 · 0 comments
Closed

Content Type of JSON response should not have a charset #81

ustun opened this issue Oct 20, 2016 · 0 comments

Comments

@ustun
Copy link

ustun commented Oct 20, 2016

Content type of JSON is always utf-8, so

content_type="application/json; charset=utf-8")

should be

content_type="application/json")

https://github.com/channelcat/sanic/blob/cab43503d0d89d19215ca6821c586c0af88f001d/sanic/response.py#L125

See: http://stackoverflow.com/a/477819/72436

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant