Add AVIF (image/avif) as a known media type.

This commit is contained in:
est31 2020-10-15 15:38:40 +02:00 committed by Sergio Benitez
parent 730a2dcdbe
commit b18cd6460e
1 changed files with 2 additions and 0 deletions

View File

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