mirror of https://github.com/rwf2/Rocket.git
Add AVIF (image/avif) as a known media type.
This commit is contained in:
parent
730a2dcdbe
commit
b18cd6460e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue