Update FileUtilities.ts

This commit is contained in:
nttzx 2022-03-25 18:28:32 +00:00
parent 5a063fd6fc
commit 6ebc1cab53

View File

@ -26,7 +26,7 @@ export class FileUtilities
const data = await fetch.default(url); const data = await fetch.default(url);
const arrayBuffer = await data.arrayBuffer(); 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); if(arrayBuffer) content = Buffer.from(arrayBuffer);
} }