You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of zendframework/zendframework#3483, JsonStrategy adds the Content-Transfer-Encoding header when using UTF-16 or UTF-32. I believe doing so is incorrect, as Content-Transfer-Encoding is a MIME header, not an HTTP header.
HTTP does not use the Content-Transfer-Encoding field of MIME.
Proxies and gateways from MIME-compliant protocols to HTTP need to
remove any Content-Transfer-Encoding prior to delivering the response
message to an HTTP client.
As of zendframework/zendframework#3483, JsonStrategy adds the
Content-Transfer-Encoding
header when using UTF-16 or UTF-32. I believe doing so is incorrect, asContent-Transfer-Encoding
is a MIME header, not an HTTP header.https://tools.ietf.org/html/rfc7231#appendix-A.5:
Apparently the confusion originated with a comment on that pull request, which is probably due to a misunderstanding of the poorly described "encoding considerations" of https://tools.ietf.org/html/rfc4627#section-6. The confusing reference to content-transfer-encoding was removed in the RFC that replaced it.
See issue #61, which was also introduced by zendframework/zendframework#3483.
Originally posted by @ademarre at zendframework/zend-view#62
The text was updated successfully, but these errors were encountered: