mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
🐛 Remove default headers for PUT and PATCH (#2434)
This commit is contained in:
parent
7a37f73eae
commit
9f7113c94b
|
@ -87,6 +87,8 @@ import {
|
||||||
axios.defaults.timeout = 300000;
|
axios.defaults.timeout = 300000;
|
||||||
// Prevent axios from adding x-form-www-urlencoded headers by default
|
// Prevent axios from adding x-form-www-urlencoded headers by default
|
||||||
axios.defaults.headers.post = {};
|
axios.defaults.headers.post = {};
|
||||||
|
axios.defaults.headers.put = {};
|
||||||
|
axios.defaults.headers.patch = {};
|
||||||
axios.defaults.paramsSerializer = (params) => {
|
axios.defaults.paramsSerializer = (params) => {
|
||||||
if (params instanceof URLSearchParams) {
|
if (params instanceof URLSearchParams) {
|
||||||
return params.toString();
|
return params.toString();
|
||||||
|
|
Loading…
Reference in a new issue