Skip to content

Add Accept header (required by some JSON API implementations) #23

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

Merged
merged 1 commit into from
May 12, 2016

Conversation

matiaszanolli
Copy link
Contributor

It's a small detail, but in some cases it makes the whole library unusable.

Some implementations of the fetch API send an Accept: */* parameter, which doesn't work well with many APIs (such as Flask and Tornado JSON API implementations).
According to the JSON API specification there shouldn't be any issues caused by sending this header in every request, and it seems to solve the problem.

Maybe it would be useful to be able to edit the default headers for fetch calls in a future release.

@egeriis
Copy link
Collaborator

egeriis commented May 11, 2016

Very fine @matiaszanolli. Will add this to 1.4.1 milestone. Should be pushed within the week.

@egeriis egeriis added this to the v1.4.1 milestone May 11, 2016
@egeriis egeriis merged commit fb58d45 into redux-json-api:master May 12, 2016
@egeriis
Copy link
Collaborator

egeriis commented May 12, 2016

1.4.1 now published.

@egeriis egeriis removed this from the v1.4.1 milestone May 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants