Skip to content

Commit

Permalink
Add MP3 (audio/mpeg) as a known media type.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-tai authored and SergioBenitez committed Jun 3, 2022
1 parent 08ef285 commit 2fc4b15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/http/src/header/known_media_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -78,6 +79,7 @@ macro_rules! known_extensions {
"otf" => OTF,
"woff" => WOFF,
"woff2" => WOFF2,
"mp3" => MP3,
"mp4" => MP4,
"mpeg4" => MP4,
"wasm" => WASM,
Expand Down

0 comments on commit 2fc4b15

Please sign in to comment.