Skip to content

Commit 9948008

Browse files
committed
fix: default size threshold
1 parent 04e5643 commit 9948008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/https/request.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ export function createRequest(opts: HttpsRequestOptions, useLegacy: boolean = tr
675675
if (opts.method === 'GET') {
676676
// Check if early resolution is requested
677677
const earlyResolve = opts.earlyResolve === true;
678-
const sizeThreshold = opts.downloadSizeThreshold !== undefined ? opts.downloadSizeThreshold : -1; // Default: always use file download
678+
const sizeThreshold = opts.downloadSizeThreshold !== undefined ? opts.downloadSizeThreshold : 1024 * 1024 * 10; // Default: always use file download
679679

680680
// Check if conditional download is requested (threshold set and not using early resolve)
681681
const useConditionalDownload = sizeThreshold >= 0 && !earlyResolve;

0 commit comments

Comments
 (0)