Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel31x13 committed Apr 18, 2024
1 parent e51fba4 commit 4640c1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/api/archiveHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4640c1c

Please sign in to comment.