mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	HttpRequest: unable to overide url with https url
This commit is contained in:
		| @@ -79,7 +79,9 @@ function HTTPRequest(n) { | ||||
| 	var httplib = (/^https/.test(url))?https:http; | ||||
| 	var node = this; | ||||
| 	this.on("input",function(msg) { | ||||
| 	         | ||||
| 	        if (msg.url) { | ||||
| 	            httplib = (/^https/.test(msg.url))?https:http; | ||||
| 	        } | ||||
| 	        var opts = urllib.parse(msg.url||url); | ||||
| 	        opts.method = (msg.method||method).toUpperCase(); | ||||
| 	        if (msg.headers) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user