mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	repalce for-in with 'normal' for loop in mqtt and http
This commit is contained in:
		| @@ -129,7 +129,7 @@ module.exports = function(RED) { | ||||
|                     // check if proxy is set in env | ||||
|                     var noproxy; | ||||
|                     if (noprox) { | ||||
|                         for (var i in noprox) { | ||||
|                         for (var i = 0; i < noprox.length; i += 1) { | ||||
|                             if (this.brokerurl.indexOf(noprox[i].trim()) !== -1) { noproxy=true; } | ||||
|                         } | ||||
|                     } | ||||
|   | ||||
| @@ -292,7 +292,7 @@ module.exports = function(RED) { | ||||
|              | ||||
|             var noproxy; | ||||
|             if (noprox) { | ||||
|                 for (var i in noprox) { | ||||
|                 for (var i = 0; i < noprox.length; i += 1) { | ||||
|                     if (url.indexOf(noprox[i]) !== -1) { noproxy=true; } | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user