From 9f7113c94b2ccda78ea12611bbfadd226d4178df Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Mon, 15 Nov 2021 17:20:28 +0100 Subject: [PATCH] :bug: Remove default headers for PUT and PATCH (#2434) --- packages/core/src/NodeExecuteFunctions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 7fcf724401..fa1894a1da 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -87,6 +87,8 @@ import { axios.defaults.timeout = 300000; // Prevent axios from adding x-form-www-urlencoded headers by default axios.defaults.headers.post = {}; +axios.defaults.headers.put = {}; +axios.defaults.headers.patch = {}; axios.defaults.paramsSerializer = (params) => { if (params instanceof URLSearchParams) { return params.toString();