Add Icon (image/x-icon) as a known media type.

This commit is contained in:
jeb 2018-09-11 15:16:06 -07:00
parent 242b358e37
commit cfdb2a404b
1 changed files with 2 additions and 0 deletions

View File

@ -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,