Clarify order change

master
Edward Shen 2022-01-11 22:45:03 -08:00
parent 2b6fc073fb
commit 73b7b50ed4
Signed by: edward
GPG Key ID: 19182661E818369F
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,8 @@ impl<T: AsRef<[u8]>> 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"
{