mirror of
https://github.com/misskey-dev/media-proxy.git
synced 2025-04-29 02:47:26 +09:00
fix
This commit is contained in:
parent
cd64162049
commit
29c6d8f37e
@ -34,7 +34,7 @@ export async function detectType(path: string): Promise<{
|
||||
return TYPE_SVG;
|
||||
}
|
||||
|
||||
if (isMimeImage(type.mime, 'safe-file')) {
|
||||
if (!isMimeImage(type.mime, 'safe-file')) {
|
||||
return TYPE_OCTET_STREAM;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user