mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-24 22:25:55 -05:00
add svg mime type mapping, sort mappings
This commit is contained in:
parent
8da5c4aa56
commit
52ec6403d6
@ -1336,15 +1336,16 @@ impl<'a> StaticFileRequest<'a> {
|
||||
};
|
||||
let ext = &path[last_dot + 1..];
|
||||
let mime = match ext {
|
||||
"css" => "text/css",
|
||||
"html" => "text/html",
|
||||
"ico" => "image/x-icon",
|
||||
"js" | "map" => "text/javascript",
|
||||
"json" => "application/json",
|
||||
"png" => "image/png",
|
||||
"webmanifest" => "application/manifest+json",
|
||||
"svg" => "image/svg+xml",
|
||||
"txt" => "text/plain",
|
||||
"webmanifest" => "application/manifest+json",
|
||||
"woff2" => "font/woff2",
|
||||
"css" => "text/css",
|
||||
_ => return None,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user