diff --git a/src/utils/FileUtilities.ts b/src/utils/FileUtilities.ts index f6d85ee..53932f5 100644 --- a/src/utils/FileUtilities.ts +++ b/src/utils/FileUtilities.ts @@ -19,6 +19,8 @@ export class FileUtilities const data = await fetch.default(url); const arrayBuffer = await data.arrayBuffer(); + if(data.headers.get('Content-Type') === 'text/html') return; + if(arrayBuffer) content = Buffer.from(arrayBuffer); } else