mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-22 15:40:52 +01:00
Update FileUtilities.ts
This commit is contained in:
parent
5a063fd6fc
commit
6ebc1cab53
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user