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

JsonStrategy should NOT set response charset with application/json #26

Open
weierophinney opened this issue Dec 31, 2019 · 0 comments
Open

Comments

@weierophinney
Copy link
Member

Wrong:
Content-Type: application/json; charset=utf-8

Right:
Content-Type: application/json

JsonStrategy adds the charset parameter to the application/json content type, which is not compliant with the spec.

https://tools.ietf.org/html/rfc7159#section-11:

No "charset" parameter is defined for this registration. Adding one really has no effect on compliant recipients.

The incorrect behavior was introduced here:
zendframework/zendframework#2629
zendframework/zendframework#3483


Originally posted by @ademarre at zendframework/zend-view#61

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