add MIME for SVG

This commit is contained in:
liquidex 2024-03-25 20:03:10 +01:00
parent 0bc07a11fa
commit b00fd674e2

View file

@ -86,6 +86,7 @@ fn get_content_type(path: &str) -> Option<&'static str> {
_ if path.ends_with(".html") => Some("text/html"), _ if path.ends_with(".html") => Some("text/html"),
_ if path.ends_with(".js") => Some("text/javascript"), _ if path.ends_with(".js") => Some("text/javascript"),
_ if path.ends_with(".woff2") => Some("font/woff2"), _ if path.ends_with(".woff2") => Some("font/woff2"),
_ if path.ends_with(".svg") => Some("image/svg+xml"),
_ => None, _ => None,
} }
} }