mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-25 14:45:54 -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 ext = &path[last_dot + 1..];
|
||||||
let mime = match ext {
|
let mime = match ext {
|
||||||
|
"css" => "text/css",
|
||||||
"html" => "text/html",
|
"html" => "text/html",
|
||||||
"ico" => "image/x-icon",
|
"ico" => "image/x-icon",
|
||||||
"js" | "map" => "text/javascript",
|
"js" | "map" => "text/javascript",
|
||||||
"json" => "application/json",
|
"json" => "application/json",
|
||||||
"png" => "image/png",
|
"png" => "image/png",
|
||||||
"webmanifest" => "application/manifest+json",
|
"svg" => "image/svg+xml",
|
||||||
"txt" => "text/plain",
|
"txt" => "text/plain",
|
||||||
|
"webmanifest" => "application/manifest+json",
|
||||||
"woff2" => "font/woff2",
|
"woff2" => "font/woff2",
|
||||||
"css" => "text/css",
|
|
||||||
_ => return None,
|
_ => return None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user