add MIME for SVG
This commit is contained in:
parent
0bc07a11fa
commit
b00fd674e2
|
@ -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(".js") => Some("text/javascript"),
|
||||
_ if path.ends_with(".woff2") => Some("font/woff2"),
|
||||
_ if path.ends_with(".svg") => Some("image/svg+xml"),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue