ContentTypeListener checking contents of DELETE requests, but these cannot have content
AxaliaN opened this issue · 2 comments
AxaliaN commented
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.
weierophinney commented
This repository has been closed and moved to laminas-api-tools/api-tools-content-negotiation; a new issue has been opened at laminas-api-tools/api-tools-content-negotiation#5.