Clarify order change

This commit is contained in:
Edward Shen 2022-01-11 22:45:03 -08:00
parent 2b6fc073fb
commit 73b7b50ed4
Signed by: edward
GPG key ID: 19182661E818369F

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"
{