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",
|
JPEG (is_jpeg): "JPEG", "image", "jpeg",
|
||||||
WEBP (is_webp): "WEBP", "image", "webp",
|
WEBP (is_webp): "WEBP", "image", "webp",
|
||||||
SVG (is_svg): "SVG", "image", "svg+xml",
|
SVG (is_svg): "SVG", "image", "svg+xml",
|
||||||
|
Icon (is_icon): "Icon", "image", "x-icon",
|
||||||
WEBM (is_webm): "WEBM", "video", "webm",
|
WEBM (is_webm): "WEBM", "video", "webm",
|
||||||
OGG (is_ogg): "OGG", "video", "ogg",
|
OGG (is_ogg): "OGG", "video", "ogg",
|
||||||
FLAC (is_flac): "FLAC", "audio", "flac",
|
FLAC (is_flac): "FLAC", "audio", "flac",
|
||||||
|
@ -49,6 +50,7 @@ macro_rules! known_extensions {
|
||||||
"jpg" => JPEG,
|
"jpg" => JPEG,
|
||||||
"webp" => WEBP,
|
"webp" => WEBP,
|
||||||
"svg" => SVG,
|
"svg" => SVG,
|
||||||
|
"ico" => Icon,
|
||||||
"flac" => FLAC,
|
"flac" => FLAC,
|
||||||
"wav" => WAV,
|
"wav" => WAV,
|
||||||
"webm" => WEBM,
|
"webm" => WEBM,
|
||||||
|
|
Loading…
Reference in New Issue