Skip to content

Commit

Permalink
Merge pull request actions#1799 from actions/bdehamer/http-client-pro…
Browse files Browse the repository at this point in the history
…xy-auth

fix encoding for proxy auth token
  • Loading branch information
bdehamer authored Aug 21, 2024
2 parents 571d782 + ada9e00 commit 7298ff3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/http-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,9 @@ export class HttpClient {
uri: proxyUrl.href,
pipelining: !this._keepAlive ? 0 : 1,
...((proxyUrl.username || proxyUrl.password) && {
token: `${proxyUrl.username}:${proxyUrl.password}`
token: `Basic ${Buffer.from(
`${proxyUrl.username}:${proxyUrl.password}`
).toString('base64')}`
})
})
this._proxyAgentDispatcher = proxyAgent
Expand Down

0 comments on commit 7298ff3

Please sign in to comment.