Skip to content

Commit

Permalink
Merge pull request #97 from RGBvision/patch-1
Browse files Browse the repository at this point in the history
fix: android timeout
  • Loading branch information
farfromrefug authored Jul 10, 2024
2 parents cd812fe + d648278 commit 04e5bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/https/request.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export function getClient(opts: Partial<HttpsRequestOptions> = {}, reload: boole
const timeout = opts.timeout ?? 10;
const cookiesEnabled = opts.cookiesEnabled ?? true;
if (Client && reload === false) {
const needTimeoutChange = timeout === _timeout;
const needTimeoutChange = timeout !== _timeout;
const needCookiesChange = cookiesEnabled === _cookiesEnabled;
if (!needTimeoutChange && !needCookiesChange) {
return Client;
Expand Down

0 comments on commit 04e5bc7

Please sign in to comment.