fix: use DEFAULT_DOWNLOAD_OPTIONS
This commit is contained in:
parent
39ccac179d
commit
bc6d545501
|
@ -40,7 +40,7 @@ export const DEFAULT_DOWNLOAD_OPTIONS = {
|
||||||
range: undefined,
|
range: undefined,
|
||||||
responseType: undefined,
|
responseType: undefined,
|
||||||
subdomain: "",
|
subdomain: "",
|
||||||
};
|
} as CustomDownloadOptions;
|
||||||
|
|
||||||
const DEFAULT_GET_METADATA_OPTIONS = {};
|
const DEFAULT_GET_METADATA_OPTIONS = {};
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ export async function downloadData(
|
||||||
download: true,
|
download: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const config = optionsToConfig(this, DEFAULT_UPLOAD_OPTIONS, customOptions);
|
const config = optionsToConfig(this, DEFAULT_DOWNLOAD_OPTIONS, customOptions);
|
||||||
|
|
||||||
return await (
|
return await (
|
||||||
await getS5DownloadCid(cid, {
|
await getS5DownloadCid(cid, {
|
||||||
|
|
Loading…
Reference in New Issue