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
Delete请求时data没有正确发送 #3292
Comments
I’m seeing the same issue. The data is not attached to DELETE requests. |
The delete instance method does not take data. Use request instead:
|
Also hitting this after updating to 0.20.0. @Nicholaiii Please note that @qmhc 's code example does not use the positional EDIT: Well, like others in this thread I completely overlooked the pinned issue which confirms it's a regression in 0.20.0, and #3282 fixes the issue. Duplicate of #3220 |
I see. Either way, the request option fixes the issue untill the PR is merged. |
Hi, Axios version 0.21.0 has been released 🎉 please use that and let us know if that solves your issue. Thanks |
@jasonsaayman |
Describe the bug
在发送 delete 请求时,传入 data
在 0.19.2 版本的时候,该 data 是能正确发送,并被后端
@RequestBody
正确解析的,在 0.20.0 版本后该 data 没有被正确发送,进而会导致数据接收不到或者发生 400 错误To Reproduce
Expected behavior
options.data
的数据能被正确发送至后端Environment
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: