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
When fetch as below,
fetch
fetch("/foo", { method: "POST", headers: { "Accept": "text/html" }, body: new URLSearchParams("bar=1") })
the request's Content-Type header value is text/plain;charset=UTF-8 since #798.
Content-Type
text/plain;charset=UTF-8
The request's Content-Type header value is application/x-www-form-urlencoded;charset=UTF-8.
application/x-www-form-urlencoded;charset=UTF-8
The text was updated successfully, but these errors were encountered:
Add test for #1076
05586bd
passes Content-Type explicitly for fetch polyfill
b71edb9
No branches or pull requests
Actual Behaviour
When
fetchas below,the request's
Content-Typeheader value istext/plain;charset=UTF-8since #798.Expected behavior
The request's
Content-Typeheader value isapplication/x-www-form-urlencoded;charset=UTF-8.The text was updated successfully, but these errors were encountered: