mirror of
https://github.com/actions/toolkit.git
synced 2025-06-08 06:27:02 +09:00
fix encoding for proxy auth token
Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
parent
7cc96bb976
commit
ada9e00cda
1 changed files with 3 additions and 1 deletions
|
@ -726,7 +726,9 @@ export class HttpClient {
|
||||||
uri: proxyUrl.href,
|
uri: proxyUrl.href,
|
||||||
pipelining: !this._keepAlive ? 0 : 1,
|
pipelining: !this._keepAlive ? 0 : 1,
|
||||||
...((proxyUrl.username || proxyUrl.password) && {
|
...((proxyUrl.username || proxyUrl.password) && {
|
||||||
token: `${proxyUrl.username}:${proxyUrl.password}`
|
token: `Basic ${Buffer.from(
|
||||||
|
`${proxyUrl.username}:${proxyUrl.password}`
|
||||||
|
).toString('base64')}`
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this._proxyAgentDispatcher = proxyAgent
|
this._proxyAgentDispatcher = proxyAgent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue