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
{{ message }}
Repository navigation
axios.defaults.headers.common not used on PATCH #5825
I set axios.defaults.headers.common['Content-Type'] = 'application/json'. When firing a axios.patch request (without a config), the request uses application/x-www-form-urlencoded instead.
Example Code
// This does not work as expected:axios.defaults.headers.common['Content-Type']='application/json'// This does:axios.defaults.headers.common['Content-Type']='application/json'axios.defaults.headers.patch['Content-Type']='application/json'
Expected behavior
I expected POST requests to use axios.defaults.headers.common, too.
I think this is where the problem (or intended behaviour) comes from:
Activity