From 6ebc1cab53306fc52110289cbe9dc1bcbe7e7ddd Mon Sep 17 00:00:00 2001 From: nttzx Date: Fri, 25 Mar 2022 18:28:32 +0000 Subject: [PATCH] Update FileUtilities.ts --- src/common/utils/FileUtilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/FileUtilities.ts b/src/common/utils/FileUtilities.ts index 1cab562..e1162da 100644 --- a/src/common/utils/FileUtilities.ts +++ b/src/common/utils/FileUtilities.ts @@ -26,7 +26,7 @@ export class FileUtilities const data = await fetch.default(url); const arrayBuffer = await data.arrayBuffer(); - if(data.headers.get('Content-Type') !== 'application/x-shockwave-flash') return; + if(data.headers.get('Content-Type') !== 'application/x-shockwave-flash' && data.headers.get('Content-Type') !== 'application/octet-stream') return; if(arrayBuffer) content = Buffer.from(arrayBuffer); }