From 4640c1c966d37b7fc22e4ebfcb244d03da1d6d82 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Thu, 18 Apr 2024 06:14:28 -0400 Subject: [PATCH] hotfix --- lib/api/archiveHandler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/api/archiveHandler.ts b/lib/api/archiveHandler.ts index 08a35b5..aaf1c98 100644 --- a/lib/api/archiveHandler.ts +++ b/lib/api/archiveHandler.ts @@ -58,7 +58,10 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) { ? await validateUrlSize(link.url) : undefined; - if (validatedUrl === null) + if ( + validatedUrl === null && + process.env.IGNORE_URL_SIZE_LIMIT !== "true" + ) throw "Something went wrong while retrieving the file size."; const contentType = validatedUrl?.get("content-type");