mirror of https://github.com/rwf2/Rocket.git
Add MP3 (audio/mpeg) as a known media type.
This commit is contained in:
parent
08ef285f37
commit
2fc4b156eb
|
@ -41,6 +41,7 @@ macro_rules! known_media_types {
|
|||
TAR (is_tar): "tape archive", "application", "x-tar",
|
||||
GZIP (is_gzip): "gzipped binary", "application", "gzip",
|
||||
MOV (is_mov): "quicktime video", "video", "quicktime",
|
||||
MP3 (is_mp3): "MPEG Audio", "audio", "mpeg",
|
||||
MP4 (is_mp4): "MPEG4 Video", "video", "mp4",
|
||||
ZIP (is_zip): "ZIP archive", "application", "zip",
|
||||
EventStream (is_event_stream): "SSE stream", "text", "event-stream",
|
||||
|
@ -78,6 +79,7 @@ macro_rules! known_extensions {
|
|||
"otf" => OTF,
|
||||
"woff" => WOFF,
|
||||
"woff2" => WOFF2,
|
||||
"mp3" => MP3,
|
||||
"mp4" => MP4,
|
||||
"mpeg4" => MP4,
|
||||
"wasm" => WASM,
|
||||
|
|
Loading…
Reference in New Issue