mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Merge pull request #2761 from brendan-myers/url-encoding
fix: add decoding for url encoded user credentials
This commit is contained in:
commit
c447875796
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user