commit 925aa59: [Minor] Add MIME types commonly used for mp3 and wav attachments

Anton Yuzhaninov citrin+git at citrin.ru
Tue Aug 9 20:07:03 UTC 2022


Author: Anton Yuzhaninov
Date: 2022-08-09 12:00:49 +0100
URL: https://github.com/rspamd/rspamd/commit/925aa59d935823022857a9bc83c3ccdb5154af79 (refs/pull/4239/head)

[Minor] Add MIME types commonly used for mp3 and wav attachments

---
 lualib/lua_mime_types.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lualib/lua_mime_types.lua b/lualib/lua_mime_types.lua
index 4fefddee9..45784da6d 100644
--- a/lualib/lua_mime_types.lua
+++ b/lualib/lua_mime_types.lua
@@ -298,7 +298,7 @@ exports.full_extensions_map = {
     {"movie", "video/x-sgi-movie"},
     {"mp2", "video/mpeg"},
     {"mp2v", "video/mpeg"},
-    {"mp3", "audio/mpeg"},
+    {"mp3", {"audio/mpeg", "audio/mpeg3", "audio/mp3", "audio/x-mpeg-3"}},
     {"mp4", "video/mp4"},
     {"mp4v", "video/mp4"},
     {"mpa", "video/mpeg"},
@@ -554,7 +554,7 @@ exports.full_extensions_map = {
     {"vsw", "application/vnd.visio"},
     {"vsx", "application/vnd.visio"},
     {"vtx", "application/vnd.visio"},
-    {"wav", "audio/wav"},
+    {"wav", {"audio/wav", "audio/vnd.wave", "audio/x-wav"}},
     {"wave", "audio/wav"},
     {"wax", "audio/x-ms-wax"},
     {"wbk", "application/msword"},


More information about the Commits mailing list