From 729036ec0b07d5d479fc23ada741c77c291ad19c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sun, 20 Apr 2014 20:50:20 +0100 Subject: [PATCH] Fix HTTTP Request url template --- nodes/core/io/21-httpin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index 8981a2e88..df69bd6b3 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -138,6 +138,7 @@ function HTTPRequest(n) { var node = this; var credentials = RED.nodes.getCredentials(n.id); this.on("input",function(msg) { + var url; if (msg.url) { url = msg.url; } else if (isTemplatedUrl) { @@ -145,7 +146,6 @@ function HTTPRequest(n) { } else { url = nodeUrl; } - var url = msg.url||nodeUrl; var method = (msg.method||nodeMethod).toUpperCase(); var opts = urllib.parse(url); opts.method = method;