Ensure uri is properly encoded before passing to got module

Fixes #3080
pull/3085/head
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
1 changed files with 1 additions and 1 deletions

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