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",
|
BMP (is_bmp): "BMP", "image", "bmp",
|
||||||
JPEG (is_jpeg): "JPEG", "image", "jpeg",
|
JPEG (is_jpeg): "JPEG", "image", "jpeg",
|
||||||
WEBP (is_webp): "WEBP", "image", "webp",
|
WEBP (is_webp): "WEBP", "image", "webp",
|
||||||
|
AVIF (is_avif): "AVIF", "image", "avif",
|
||||||
SVG (is_svg): "SVG", "image", "svg+xml",
|
SVG (is_svg): "SVG", "image", "svg+xml",
|
||||||
Icon (is_icon): "Icon", "image", "x-icon",
|
Icon (is_icon): "Icon", "image", "x-icon",
|
||||||
WEBM (is_webm): "WEBM", "video", "webm",
|
WEBM (is_webm): "WEBM", "video", "webm",
|
||||||
|
@ -59,6 +60,7 @@ macro_rules! known_extensions {
|
||||||
"jpeg" => JPEG,
|
"jpeg" => JPEG,
|
||||||
"jpg" => JPEG,
|
"jpg" => JPEG,
|
||||||
"webp" => WEBP,
|
"webp" => WEBP,
|
||||||
|
"avif" => AVIF,
|
||||||
"svg" => SVG,
|
"svg" => SVG,
|
||||||
"ico" => Icon,
|
"ico" => Icon,
|
||||||
"flac" => FLAC,
|
"flac" => FLAC,
|
||||||
|
|
Loading…
Reference in New Issue