This repository was archived by the owner on Jan 21, 2020. It is now read-only.
zf-content-negotiation 1.1.2
Added
- #50 adds support for parsing
application/hal+json
bodies;_embedded
properties are now merged with the top-level object following parsing. - #66 adds suport in the
ContentTypeFilterListener
to allow for request bodies to be objects that are castable to strings, such as occurs when using zend-psr7bridge to convert from PSR-7 to zend-http request instances (the message body is then aStreamInterface
implementation, which may be cast to a string).
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #68 fixes parsing of urlencoded data within PUT requests.
- #52 updates the
ContentTypeListener
to raise an error for non-object/non-array JSON payloads. - #58 updates the
AcceptFilterListener
to validate payloads without anAccept
header. - #63 fixes the
ContentTypeListener
behavior when the request body does not contain a MIME boundary; the method now catches the exception and returns a 400 response.