From 3610e73d3b79850c5c7ac81eb6a1514fcb8828df Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Wed, 17 Apr 2024 18:18:50 -0400 Subject: [PATCH] minor fix --- 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");