1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure uri is properly encoded before passing to got module

Fixes #3080
This commit is contained in:
Nick O'Leary 2021-07-22 23:47:32 +01:00
parent 79d9c83a2d
commit 7b106e5650
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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