From cfdb2a404b8ae1f42d551b200d0555fe2b85c1f9 Mon Sep 17 00:00:00 2001 From: jeb Date: Tue, 11 Sep 2018 15:16:06 -0700 Subject: [PATCH] Add Icon (image/x-icon) as a known media type. --- core/http/src/known_media_types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/http/src/known_media_types.rs b/core/http/src/known_media_types.rs index d00bd596..afd84ba4 100644 --- a/core/http/src/known_media_types.rs +++ b/core/http/src/known_media_types.rs @@ -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,