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

Improve validation of response status and content. #6

Merged
merged 3 commits into from Aug 28, 2016
Merged

Conversation

dgeb
Copy link
Owner

@dgeb dgeb commented Aug 28, 2016

  • responseHasContent is now more forgiving and returns true if the JSONAPI media type appears anywhere in a response’s Content-Type header.
  • When a server responds with a 201 but does not include content, throw a new InvalidServerResponseException.

/cc @mitchlloyd

[Fixes #3]

`responseHasContent` now returns true if the JSONAPI media type appears 
anywhere in a response’s `Content-Type` header.

[Fixes #3]
When a server responds with a 201 but does not include content, throw
the new InvalidServerResponseException.
@dgeb dgeb merged commit cc1ac36 into master Aug 28, 2016
@dgeb dgeb deleted the content-type branch August 28, 2016 19:31
@dgeb
Copy link
Owner Author

dgeb commented Aug 28, 2016

Released in v0.8.0-beta.4.

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.

None yet

1 participant