From 73b7b50ed416bedc18660455018058539a26415f Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Tue, 11 Jan 2022 22:45:03 -0800 Subject: [PATCH] Clarify order change --- web/src/decrypt.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" {