Skip to content

Conversation

tlconnor
Copy link

According to the JSON:API spec:

Clients MUST send all JSON:API data in request documents with the header Content-Type: application/vnd.api+json without any media type parameters.

This PR updates the defaults for the Accept and Content-Type to match the spec.

https://jsonapi.org/format/#content-negotiation-clients

@wadetandy
Copy link
Contributor

@tlconnor Thanks for this!

@wadetandy wadetandy merged commit d854bab into jsonapi-suite:master Nov 30, 2018
@tlconnor tlconnor deleted the fixAcceptHeader branch January 16, 2019 22:19
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.

2 participants