mirror of https://github.com/actions/toolkit
Merge pull request #1799 from actions/bdehamer/http-client-proxy-auth
fix encoding for proxy auth tokenpull/1802/merge
commit
7298ff3219
|
@ -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…
Reference in New Issue