You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DELETE Request with data stopped working when installing v0.20.0.
The data is not send any more.
Switching back to v0.19.2 solved the problem.
To Reproduce
Code snippet to reproduce, ideally that will work by pasting into something like https://npm.runkit.com/axios, a hosted solution, or a repository that illustrates the issue. If your problem is not reproducible, please file under Support or Usage Question
importaxiosfrom'axios';consthttp=axios.create({baseURL: '/api',timeout: 60000});constgetAppHeader=(app)=>{return{headers: {'X-ON-BEHALF-OF-APPLICATION': app.clientId}};};/** * Adds Users to the Application Manager Group for the given application. * * @param users * @param app * @return {Promise<boolean>} */constchangeAppMgrGroupMembers=async(app,users)=>{constconf=getAppHeader(app);constusersRemove=[];constusersAdd=[];users.forEach((user)=>{if(user.flagDelete){usersRemove.push(user);}else{usersAdd.push(user);}});letresult=true;try{constresponse=awaithttp.delete('/AppMgrGroups',Object.assign({data: usersRemove},conf));result=response.status===202;}catch(e){console.error('Error in addUsersToAppMgrGroup',e);}
...
Expected behavior
Delete with data should continue working in v0.20. Much better would be, if it works same as post or push.
Environment
Axios Version [e.g. 0.20.0]
Adapter [e.g. XHR/HTTP]
Browser Firefox
Browser Version 81
Node.js Version 12.18.4
OS: Linux Mint 20
Additional Library Versions @vue/cli 4.5.6, vue 2
The text was updated successfully, but these errors were encountered:
This issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue.
Describe the bug
DELETE Request with data stopped working when installing v0.20.0.
The data is not send any more.
Switching back to v0.19.2 solved the problem.
To Reproduce
Code snippet to reproduce, ideally that will work by pasting into something like https://npm.runkit.com/axios, a hosted solution, or a repository that illustrates the issue. If your problem is not reproducible, please file under Support or Usage Question
Expected behavior
Delete with data should continue working in v0.20. Much better would be, if it works same as post or push.
Environment
The text was updated successfully, but these errors were encountered: