From 9dbf6e5f6d03c062cc0c42da3e37f0973b5a9e0b Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 6 Oct 2021 12:00:38 -0500 Subject: [PATCH] :bug: Fix issue with none-json requests (#2283) --- packages/core/src/NodeExecuteFunctions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 8a128db12d..6786c10ea5 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -337,6 +337,7 @@ async function parseRequestObject(requestObject: IDataObject) { axiosConfig.headers = Object.assign(axiosConfig.headers || {}, { accept: '*/*' }); } if ( + requestObject.json !== false && axiosConfig.data !== undefined && !(axiosConfig.data instanceof Buffer) && !allHeaders.some((headerKey) => headerKey.toLowerCase() === 'content-type')