Skip to content

Commit

Permalink
fix: add decoding for url encoded user credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-myers committed May 29, 2024
1 parent a4c2106 commit 8e2dc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js/src/http_proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8e2dc27

Please sign in to comment.