Skip to content

Commit

Permalink
fix: initialise new Quester instance only proxyAgent is set
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Mar 9, 2024
1 parent 15c8c92 commit 10ad673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export abstract class ImageSource<Config extends ImageSource.Config = ImageSourc
constructor(public ctx: Context, public config: Config) {
this.ctx.booru.register(this)

this.http = ctx.http.extend({ proxyAgent: config.proxyAgent })
this.http = config.proxyAgent ? ctx.http.extend({ proxyAgent: config.proxyAgent }) : ctx.http
}

/**
Expand Down

0 comments on commit 10ad673

Please sign in to comment.