mirror of https://github.com/rwf2/Rocket.git
Added WEBM, OGG, and WAV as known media types.
This commit is contained in:
parent
58e694d14a
commit
9bc6502fa7
|
@ -18,6 +18,9 @@ macro_rules! known_media_types {
|
||||||
JPEG (is_jpeg): "JPEG", "image", "jpeg",
|
JPEG (is_jpeg): "JPEG", "image", "jpeg",
|
||||||
WEBP (is_webp): "WEBP", "image", "webp",
|
WEBP (is_webp): "WEBP", "image", "webp",
|
||||||
SVG (is_svg): "SVG", "image", "svg+xml",
|
SVG (is_svg): "SVG", "image", "svg+xml",
|
||||||
|
WEBM (is_webm): "WEBM", "video", "webm",
|
||||||
|
OGG (is_ogg): "OGG", "video", "ogg",
|
||||||
|
WAV (is_wav): "WAV", "audio", "wav",
|
||||||
PDF (is_pdf): "PDF", "application", "pdf",
|
PDF (is_pdf): "PDF", "application", "pdf",
|
||||||
TTF (is_ttf): "TTF", "application", "font-sfnt",
|
TTF (is_ttf): "TTF", "application", "font-sfnt",
|
||||||
OTF (is_otf): "OTF", "application", "font-sfnt",
|
OTF (is_otf): "OTF", "application", "font-sfnt",
|
||||||
|
@ -44,6 +47,9 @@ macro_rules! known_extensions {
|
||||||
"jpg" => JPEG,
|
"jpg" => JPEG,
|
||||||
"webp" => WEBP,
|
"webp" => WEBP,
|
||||||
"svg" => SVG,
|
"svg" => SVG,
|
||||||
|
"wav" => WAV,
|
||||||
|
"webm" => WEBM,
|
||||||
|
"ogg" => OGG,
|
||||||
"pdf" => PDF,
|
"pdf" => PDF,
|
||||||
"ttf" => TTF,
|
"ttf" => TTF,
|
||||||
"otf" => OTF,
|
"otf" => OTF,
|
||||||
|
|
Loading…
Reference in New Issue