From 7b106e56506b43e8794ec9a94f3ff644675cbe67 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 22 Jul 2021 23:47:32 +0100 Subject: [PATCH] Ensure uri is properly encoded before passing to got module Fixes #3080 --- .../node_modules/@node-red/nodes/core/network/21-httprequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js index 8e55b8158..edbdfd8cb 100644 --- a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js +++ b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js @@ -134,7 +134,7 @@ in your Node-RED user directory (${RED.settings.userDir}). url = "http://"+url; } } - + url = encodeURI(url); var method = nodeMethod.toUpperCase() || "GET"; if (msg.method && n.method && (n.method !== "use")) { // warn if override option not set