From fd185671dbc45c61d285373e26d82cb5e98387f0 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Mon, 13 Apr 2020 22:17:23 +0200 Subject: [PATCH] :bug: Fix sending none JSON data bug --- packages/nodes-base/nodes/HttpRequest.node.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/nodes-base/nodes/HttpRequest.node.ts b/packages/nodes-base/nodes/HttpRequest.node.ts index 2186a2f22a..8347af228e 100644 --- a/packages/nodes-base/nodes/HttpRequest.node.ts +++ b/packages/nodes-base/nodes/HttpRequest.node.ts @@ -697,12 +697,8 @@ export class HttpRequest implements INodeType { } } - try { - // @ts-ignore - requestOptions[optionData.name] = JSON.parse(tempValue as string); - } catch (error) { - throw new Error(`${optionData.name} must be a valid JSON`); - } + // @ts-ignore + requestOptions[optionData.name] = tempValue; // @ts-ignore if (typeof requestOptions[optionData.name] !== 'object' && options.bodyContentType !== 'raw') {