Skip to content

Commit

Permalink
fix(proxy): fix an issue where an array is passed to the interceptor (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rice-cracker-dev authored Nov 15, 2024
1 parent 5e2ab3e commit 607f4d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export class Proxy {
if (!this.validUrl.test(url)) throw new Error(`Proxy URL at index ${i} is invalid!`);

this.rotateProxy({ ...proxyConfig, urls: proxyConfig.url });

return;
}

this.client.interceptors.request.use(config => {
Expand Down

0 comments on commit 607f4d5

Please sign in to comment.