Hello,
in the ContentTypeListener, in the __invoke function, checks are done for the content of a DELETE request. Per the spec, DELETE requests should not have a payload.
If I send a delete request with an application/json content-type, this will fail, because it will try to parse an empty content as JSON.
In my opinion, the DELETE should be removed from the switch statement.
Originally posted by @AxaliaN at zfcampus/zf-content-negotiation#87
Hello,
in the ContentTypeListener, in the __invoke function, checks are done for the content of a DELETE request. Per the spec, DELETE requests should not have a payload.
If I send a delete request with an application/json content-type, this will fail, because it will try to parse an empty content as JSON.
In my opinion, the DELETE should be removed from the switch statement.
Originally posted by @AxaliaN at zfcampus/zf-content-negotiation#87