Prettify changes

Co-authored-by: Felipe Galindo Sanchez <felipe.galindo.sanchez@intel.com>
This commit is contained in:
Pavan Ravipati
2021-03-24 14:36:53 -07:00
committed by GitHub
parent e3934bd2d3
commit 8815420ebb

View File

@@ -642,7 +642,9 @@ export class HttpClient {
maxSockets: maxSockets,
keepAlive: this._keepAlive,
proxy: {
...((proxyUrl.username || proxyUrl.password) && { proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` }),
...((proxyUrl.username || proxyUrl.password) && {
proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
}),
host: proxyUrl.hostname,
port: proxyUrl.port
}