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

Wrong expectation for default Content-type on POST requests #200

Open
joyously opened this issue Aug 20, 2017 · 0 comments
Open

Wrong expectation for default Content-type on POST requests #200

joyously opened this issue Aug 20, 2017 · 0 comments

Comments

@joyously
Copy link

it("sets Content-type header for POST if not provided", function () {

This test case is faulty. Not all POST requests should have the same default Content-type.
If you look at this example, and try to code that with fetch instead, it won't work correctly (file is not uploaded).
This covers up a bug with fetch.

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

No branches or pull requests

1 participant