Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

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

Open
ademarre opened this issue May 17, 2016 · 1 comment
Open

Comments

@ademarre
Copy link

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

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-view; a new issue has been opened at laminas/laminas-view#26.

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

No branches or pull requests

2 participants