-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Labels
priority::mediumA medium priorityA medium priority
Description
Describe the bug
For axios >= 1.2.0. When default params is set. The params merging process is wrong.
To Reproduce
https://codepen.io/lililisu1997/pen/gOVXaqX?editors=1111
Code snippet
// try comment the following line and run again
axios.defaults.params = {};
const s = axios.getUri({
url: '/tiktok',
params: {
region: 'BR',
Region: 'BR',
},
})
console.log(s);Expected behavior
The output should be the same whether the default params is set or not
Axios Version
1.7.7
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority::mediumA medium priorityA medium priority