1
Fork 0

add image content types to PhysicalDir

This commit is contained in:
リキ萌 2025-01-24 20:11:20 +01:00 committed by リキ萌
parent 1423483b5c
commit fe084d50ac

View file

@ -99,6 +99,9 @@ fn guess_content_type(extension: &str) -> Option<&'static str> {
"woff" => Some("font/woff2"),
"svg" => Some("image/svg+xml"),
"atom" => Some("application/atom+xml"),
"png" => Some("image/png"),
"webp" => Some("image/webp"),
"jpg" | "jpeg" => Some("image/jpeg"),
_ => None,
}
}