diff --git a/web/src/decrypt.rs b/web/src/decrypt.rs index 6ed1518..068aeae 100644 --- a/web/src/decrypt.rs +++ b/web/src/decrypt.rs @@ -141,7 +141,8 @@ impl> ContentTypeExt for T { fn content_type(&self) -> ContentType { let mime_type = self.mime_type(); - if mime_type.starts_with("image/") // check image first because svg is image + // check image first; tree magic match_u8 matches SVGs as plain text + if mime_type.starts_with("image/") // application/x-riff is WebP || mime_type == "application/x-riff" {