Skip to content

Commit 8e2dc27

Browse files
committed
fix: add decoding for url encoded user credentials
1 parent a4c2106 commit 8e2dc27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/grpc-js/src/http_proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function getProxyInfo(): ProxyInfo {
8080
if (proxyUrl.username) {
8181
if (proxyUrl.password) {
8282
log(LogVerbosity.INFO, 'userinfo found in proxy URI');
83-
userCred = `${proxyUrl.username}:${proxyUrl.password}`;
83+
userCred = decodeURIComponent(`${proxyUrl.username}:${proxyUrl.password}`);
8484
} else {
8585
userCred = proxyUrl.username;
8686
}

0 commit comments

Comments
 (0)