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

Handling responses with 204 status code #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdziemianko
Copy link

Following the issue started by ashic (#9) regardless responses that do not contain the body, I have also run into similar problem. Although his point of handling 201 and 202 codes with no body is not necessarily valid, a 204 code is commonly used as a response to DELETE operations. As 204 response explicitly prohibits a body, it causes the executed actions to fail with MalformedSirenError, which in my opinion is incorrect, as technically there is no entity to parse in a first place (similarly to 404). This pull request is a simple mod that makes actions that get 204 response succeed.

@coveralls
Copy link

coveralls commented Apr 13, 2018

Coverage Status

Coverage increased (+0.09%) to 85.714% when pulling 42b75ed on mdziemianko:master into 97c7f9a on vertical-knowledge:master.

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

Successfully merging this pull request may close these issues.

3 participants