From 2fc4b156ebcc3e7220159dd638286e8d890cccba Mon Sep 17 00:00:00 2001 From: James Tai Date: Thu, 2 Jun 2022 18:21:38 -0400 Subject: [PATCH] Add MP3 (audio/mpeg) as a known media type. --- core/http/src/header/known_media_types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/http/src/header/known_media_types.rs b/core/http/src/header/known_media_types.rs index b829fe0c..8ace6824 100644 --- a/core/http/src/header/known_media_types.rs +++ b/core/http/src/header/known_media_types.rs @@ -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,