Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4640c1c966 |
@@ -58,7 +58,10 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
|
|||||||
? await validateUrlSize(link.url)
|
? await validateUrlSize(link.url)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
if (validatedUrl === null)
|
if (
|
||||||
|
validatedUrl === null &&
|
||||||
|
process.env.IGNORE_URL_SIZE_LIMIT !== "true"
|
||||||
|
)
|
||||||
throw "Something went wrong while retrieving the file size.";
|
throw "Something went wrong while retrieving the file size.";
|
||||||
|
|
||||||
const contentType = validatedUrl?.get("content-type");
|
const contentType = validatedUrl?.get("content-type");
|
||||||
|
|||||||
Reference in New Issue
Block a user