Skip to content

Commit ada9e00

Browse files
committed
fix encoding for proxy auth token
Signed-off-by: Brian DeHamer <[email protected]>
1 parent 7cc96bb commit ada9e00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/http-client/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,9 @@ export class HttpClient {
726726
uri: proxyUrl.href,
727727
pipelining: !this._keepAlive ? 0 : 1,
728728
...((proxyUrl.username || proxyUrl.password) && {
729-
token: `${proxyUrl.username}:${proxyUrl.password}`
729+
token: `Basic ${Buffer.from(
730+
`${proxyUrl.username}:${proxyUrl.password}`
731+
).toString('base64')}`
730732
})
731733
})
732734
this._proxyAgentDispatcher = proxyAgent

0 commit comments

Comments
 (0)