From bc6d545501ebdbd6fd72bc3ab3db418fc792adc6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 13 Feb 2024 00:09:52 -0500 Subject: [PATCH] fix: use DEFAULT_DOWNLOAD_OPTIONS --- src/methods/download.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/methods/download.ts b/src/methods/download.ts index c7cfe83..9840d12 100644 --- a/src/methods/download.ts +++ b/src/methods/download.ts @@ -40,7 +40,7 @@ export const DEFAULT_DOWNLOAD_OPTIONS = { range: undefined, responseType: undefined, subdomain: "", -}; +} as CustomDownloadOptions; const DEFAULT_GET_METADATA_OPTIONS = {}; @@ -133,7 +133,7 @@ export async function downloadData( download: true, }; - const config = optionsToConfig(this, DEFAULT_UPLOAD_OPTIONS, customOptions); + const config = optionsToConfig(this, DEFAULT_DOWNLOAD_OPTIONS, customOptions); return await ( await getS5DownloadCid(cid, {