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

Commits on Aug 28, 2016

  1. responseHasContent is more forgiving in its Content-Type checking.

    `responseHasContent` now returns true if the JSONAPI media type appears 
    anywhere in a response’s `Content-Type` header.
    
    [Fixes #3]
    dgeb committed Aug 28, 2016
    Copy the full SHA
    5c3b9c4 View commit details
    Browse the repository at this point in the history
  2. Minor test re-org and cleanup.

    dgeb committed Aug 28, 2016
    Copy the full SHA
    c8fce17 View commit details
    Browse the repository at this point in the history
  3. Improve validation of response status and content.

    When a server responds with a 201 but does not include content, throw
    the new InvalidServerResponseException.
    dgeb committed Aug 28, 2016
    Copy the full SHA
    bd3d7e6 View commit details
    Browse the repository at this point in the history