Skip to content

Commit

Permalink
Merge pull request #2761 from brendan-myers/url-encoding
Browse files Browse the repository at this point in the history
fix: add decoding for url encoded user credentials
  • Loading branch information
murgatroid99 committed Jun 18, 2024
2 parents d90ca24 + 8e2dc27 commit c447875
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 c447875

Please sign in to comment.