Skip to content

Commit

Permalink
fix: fetch strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Feb 26, 2024
1 parent 01219b7 commit 4a7f068
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class DownloadEngineNodejs<T extends DownloadEngineWriteStreamNod
DownloadEngineNodejs._validateOptions(options);
const partsURL = "partsURL" in options ? options.partsURL : [options.url];

options.fetchStrategy ??= DownloadEngineNodejs._guessFetchStrategy(partsURL[0]) ? "localFile" : "fetch";
options.fetchStrategy ??= DownloadEngineNodejs._guessFetchStrategy(partsURL[0]);
const fetchStream = options.fetchStrategy === "localFile" ?
new DownloadEngineFetchStreamLocalFile(options) :
new DownloadEngineFetchStreamFetch(options);
Expand Down

0 comments on commit 4a7f068

Please sign in to comment.