Check instead if it's swf

This commit is contained in:
SpreedBLood 2021-03-13 21:17:20 +01:00
parent 01575b0843
commit b817561a85

View File

@ -19,7 +19,7 @@ export class FileUtilities
const data = await fetch.default(url);
const arrayBuffer = await data.arrayBuffer();
if(data.headers.get('Content-Type') === 'text/html') return;
if(data.headers.get('Content-Type') !== 'application/x-shockwave-flash') return;
if(arrayBuffer) content = Buffer.from(arrayBuffer);
}