mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-26 09:20:51 +01:00
Check instead if it's swf
This commit is contained in:
parent
01575b0843
commit
b817561a85
@ -19,7 +19,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') === 'text/html') return;
|
if(data.headers.get('Content-Type') !== 'application/x-shockwave-flash') return;
|
||||||
|
|
||||||
if(arrayBuffer) content = Buffer.from(arrayBuffer);
|
if(arrayBuffer) content = Buffer.from(arrayBuffer);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user