Merge pull request #2761 from brendan-myers/url-encoding

fix: add decoding for url encoded user credentials
This commit is contained in:
Michael Lumish 2024-06-18 15:36:48 -07:00 committed by GitHub
commit c447875796
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,7 +80,7 @@ function getProxyInfo(): ProxyInfo {
if (proxyUrl.username) {
if (proxyUrl.password) {
log(LogVerbosity.INFO, 'userinfo found in proxy URI');
userCred = `${proxyUrl.username}:${proxyUrl.password}`;
userCred = decodeURIComponent(`${proxyUrl.username}:${proxyUrl.password}`);
} else {
userCred = proxyUrl.username;
}