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
v0.21.3 does not set charset in Content-Type header #4016
Comments
OK, I just found #2154 that is actually mentioned in 0.21.2 changelog. I've missed it the first time because it's in "Internal/Tests" section. IMHO it's not OK to "hide" this in the "Internal" section. It's not an internal change at all, it's a breaking change in Axios behavior. At least you should have mentioned it in a "Breaking changes" section, and even better you should not have released a patch version... I know you're still in 0.x so you can break stuff, etc. but Axios is a lib used by hundreds of projects and breaking things is not cool. |
@ddolcimascolo Sorry about this, I know some things may have fallen through the cracks, this was a release that spanned almost a year so not everything was fresh in my mind. We did not intentionally hide this, in fact I did not think that this was a largely impactful change, I will try be more cognisant of this in the future. |
I know @jasonsaayman. No worries Thx for maintaining Axios! |
Describe the bug
Axios 0.21.3 (0.21.2 too, actually) does not set
chartset=utf-8
inContent-Type
header on POST requests, using an object asdata
To Reproduce
I've created a Runkit: https://runkit.com/ddolcimascolo/axios-0.21.3-content-type-issue
This code will yield
Expected behavior
Content-Type
header should containcharset=utf-8
Environment
Additional context/Screenshots
N/A
The text was updated successfully, but these errors were encountered: