diff --git a/packages/https-proxy-agent/src/index.ts b/packages/https-proxy-agent/src/index.ts index 272f7790..31a757a0 100644 --- a/packages/https-proxy-agent/src/index.ts +++ b/packages/https-proxy-agent/src/index.ts @@ -50,7 +50,7 @@ export class HttpsProxyAgent extends Agent { constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions) { super(opts); - this.options = { path: undefined }; + this.options = { path: undefined, ...opts }; this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy; this.proxyHeaders = opts?.headers ?? {}; debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);