mirror of
https://github.com/misskey-dev/media-proxy.git
synced 2025-04-29 10:57:30 +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;
|
return TYPE_SVG;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMimeImage(type.mime, 'safe-file')) {
|
if (!isMimeImage(type.mime, 'safe-file')) {
|
||||||
return TYPE_OCTET_STREAM;
|
return TYPE_OCTET_STREAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user