Allow escaped proxy credentials (#2664)

This commit is contained in:
msalettes
2021-04-17 09:49:07 +02:00
committed by GitHub
parent ed5d753b89
commit 9c100830e0
2 changed files with 12 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ module.exports = function () {
? tunnelAgent.httpsOverHttps
: tunnelAgent.httpsOverHttp;
const proxyAuth = proxy.username && proxy.password
? `${proxy.username}:${proxy.password}`
? `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`
: null;
return tunnel({
proxy: {