Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentTypeListener checking contents of DELETE requests, but these cannot have content #5

Open
weierophinney opened this issue Dec 31, 2019 · 1 comment

Comments

@weierophinney
Copy link
Contributor

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

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

No branches or pull requests

1 participant