From b18cd6460ef49ee2e7d940b718dca345741594f5 Mon Sep 17 00:00:00 2001 From: est31 Date: Thu, 15 Oct 2020 15:38:40 +0200 Subject: [PATCH] Add AVIF (image/avif) 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 d2458579..f4d4e034 100644 --- a/core/http/src/known_media_types.rs +++ b/core/http/src/known_media_types.rs @@ -17,6 +17,7 @@ macro_rules! known_media_types { BMP (is_bmp): "BMP", "image", "bmp", JPEG (is_jpeg): "JPEG", "image", "jpeg", WEBP (is_webp): "WEBP", "image", "webp", + AVIF (is_avif): "AVIF", "image", "avif", SVG (is_svg): "SVG", "image", "svg+xml", Icon (is_icon): "Icon", "image", "x-icon", WEBM (is_webm): "WEBM", "video", "webm", @@ -59,6 +60,7 @@ macro_rules! known_extensions { "jpeg" => JPEG, "jpg" => JPEG, "webp" => WEBP, + "avif" => AVIF, "svg" => SVG, "ico" => Icon, "flac" => FLAC,