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