commit d46a6a3: [Minor] Allow "text/rtf" for rtf files

GitHub noreply at github.com
Fri Feb 1 12:42:04 UTC 2019


Author: Alexander Moisseev
Date: 2019-02-01 10:27:16 +0300
URL: https://github.com/rspamd/rspamd/commit/d46a6a35c537375ad2a7a4265668460a19cbdcf0 (refs/pull/2740/head)

[Minor] Allow "text/rtf" for rtf files

---
 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 c741190b3..6588edcbf 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -607,7 +607,7 @@ local full_extensions_map = {
   {"roff", "application/x-troff"},
   {"rpm", "audio/x-pn-realaudio-plugin"},
   {"rqy", "text/x-ms-rqy"},
-  {"rtf", {"application/rtf","application/msword", "text/richtext"}},
+  {"rtf", {"application/rtf","application/msword", "text/richtext", "text/rtf"}},
   {"rtx", "text/richtext"},
   {"rvt", "application/octet-stream" },
   {"ruleset", "application/xml"},


More information about the Commits mailing list