mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix HTTTP Request url template
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user