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
Breaking change in v0.20.0 #3335
Comments
I think I maybe get the same bug ... I'm using data in
|
Just as a bump, this issue is impacting me as well. I just noticed it today after upgrading from 0.19.2 to 0.20.0. I have several systems that interact with APIs that require a request body with certain GET requests, which are now not working after the upgrade since the Behavior on 0.19.2
Request being sent:
Behavior on 0.20.0
Request being sent: |
Does it share the same reason with the pinned #3220? |
I'd assume so, since both |
Yeah #3220 should fix that up. |
I think so too, I'll close this 👍 |
Describe the bug
A breaking change was introduced here:
https://github.com/axios/axios/pull/2844/files?file-filters%5B%5D=.js&hide-deleted-files=true#diff-597f69416721110963cbbdf72c6d4e6e30d77da5073041b4b10a702c0a7186f0R76
Previously a
GET
request would be able to includedata
, since before the change aboveutil.merge
would keep the data property passed inconfig
. Now themergeConfig
function will ignore the data property inconfig
, causing the request to be made without data.Whether or not a
GET
request should be able to send a body is debatable I guess, but this change should probably be documented somewhere.To Reproduce
Result:
Expected behavior
A clear and concise description of what you expected to happen.
Environment
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: