commit fd4dfc9: [Minor] mime_types: Add "text/plain" CT for "csv" extension

Alexander Moisseev moiseev at mezonplus.ru
Tue Jan 29 14:42:04 UTC 2019


Author: Alexander Moisseev
Date: 2019-01-29 09:56:06 +0300
URL: https://github.com/rspamd/rspamd/commit/fd4dfc9c250038751683f513a6674495458a51d4 (refs/pull/2737/head)

[Minor] mime_types: Add "text/plain" CT for "csv" extension
as some MUAs use it.

---
 src/plugins/lua/mime_types.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 206284a25..d53250510 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -286,7 +286,7 @@ local full_extensions_map = {
   {"csh", "application/x-csh"},
   {"csproj", "text/plain"},
   {"css", "text/css"},
-  {"csv", "text/csv"},
+  {"csv", {"text/csv", "text/plain"}},
   {"cur", "application/octet-stream"},
   {"cxx", "text/plain"},
   {"dat", {"application/octet-stream", "application/ms-tnef"}},


More information about the Commits mailing list