Fix proxy authentication problem & reinstate tests

Down to only 2 of the previous tests not working
This commit is contained in:
Ben Hardill
2021-06-08 14:22:20 +01:00
parent 9e4dfe081f
commit d5c5738aab
2 changed files with 53 additions and 35 deletions

View File

@@ -363,6 +363,9 @@ module.exports = function(RED) {
proxyOptions.proxy.username = proxyUsername;
proxyOptions.proxy.password = proxyPassword;
}
} else if (proxyURL.username || proxyURL.password){
proxyOptions.proxy.username = proxyURL.username;
proxyOptions.proxy.password = proxyURL.password;
}
//need both incase of http -> https redirect
opts.agent = {