Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
including constuctor opts into super opts
  • Loading branch information
landonsilla authored Aug 7, 2024
1 parent 5555794 commit ffc3fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/https-proxy-agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class HttpsProxyAgent<Uri extends string> extends Agent {

constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions<Uri>) {
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);
Expand Down

0 comments on commit ffc3fa8

Please # to comment.