add image content types to PhysicalDir
This commit is contained in:
parent
1423483b5c
commit
fe084d50ac
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue