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

Use the Accept header for determining the Content-Type instead of Content-Type #7098

Merged
merged 1 commit into from
Jul 29, 2016

Conversation

jsternberg
Copy link
Contributor

The Content-Type header is meant to say what the content type of the
request is supposed to be and Accept is used to ask for a specific
content type. I messed this up and used Content-Type instead of
Accept. This works with GET requests accidentally, but POST
requests stop working.

…tent-Type

The `Content-Type` header is meant to say what the content type of the
request is supposed to be and `Accept` is used to ask for a specific
content type. I messed this up and used `Content-Type` instead of
`Accept`. This works with `GET` requests accidentally, but `POST`
requests stop working.
@jsternberg
Copy link
Contributor Author

@corylanou a bug I found in #6815.

@corylanou
Copy link
Contributor

+1

@jsternberg jsternberg merged commit cac6765 into master Jul 29, 2016
@jsternberg jsternberg deleted the js-use-proper-header-for-content-type branch July 29, 2016 20:00
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