mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Failed to set http request headers - fixes #32
This commit is contained in:
		| @@ -82,7 +82,7 @@ function HTTPRequest(n) { | ||||
| 	        var opts = urllib.parse(msg.url||url); | ||||
| 	        opts.method = msg.method||method; | ||||
| 	        if (msg.headers) { | ||||
| 	            opts.header = headers; | ||||
| 	            opts.header = msg.headers; | ||||
| 	        } | ||||
| 	        var req = httplib.request(opts,function(res) { | ||||
| 	                res.setEncoding('utf8'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user