Skip to content

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