]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add MIME types commonly used for mp3 and wav attachments 4239/head
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 9 Aug 2022 11:00:49 +0000 (12:00 +0100)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 9 Aug 2022 11:05:48 +0000 (12:05 +0100)
lualib/lua_mime_types.lua

index 4fefddee9159bab52ac9d5e47fe74ff4c2750925..45784da6d4ac760b46b67f257fd6ab2cc759a827 100644 (file)
@@ -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"},