mirror of https://github.com/rwf2/Rocket.git
Add Icon (image/x-icon) as a known media type.
This commit is contained in:
parent
242b358e37
commit
cfdb2a404b
|
@ -18,6 +18,7 @@ macro_rules! known_media_types {
|
|||
JPEG (is_jpeg): "JPEG", "image", "jpeg",
|
||||
WEBP (is_webp): "WEBP", "image", "webp",
|
||||
SVG (is_svg): "SVG", "image", "svg+xml",
|
||||
Icon (is_icon): "Icon", "image", "x-icon",
|
||||
WEBM (is_webm): "WEBM", "video", "webm",
|
||||
OGG (is_ogg): "OGG", "video", "ogg",
|
||||
FLAC (is_flac): "FLAC", "audio", "flac",
|
||||
|
@ -49,6 +50,7 @@ macro_rules! known_extensions {
|
|||
"jpg" => JPEG,
|
||||
"webp" => WEBP,
|
||||
"svg" => SVG,
|
||||
"ico" => Icon,
|
||||
"flac" => FLAC,
|
||||
"wav" => WAV,
|
||||
"webm" => WEBM,
|
||||
|
|
Loading…
Reference in New Issue