aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-27 13:40:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-27 13:40:44 +0100
commitd4b650a68c1502f2fe0aa910f5bad6eee0f6e11a (patch)
tree4b4864f6f4f2ec26d0b20ed01fd52051f93c2d6a
parentc7bca7a471a4d91ba5b7489ff234f30f92821dac (diff)
downloadrspamd-d4b650a68c1502f2fe0aa910f5bad6eee0f6e11a.tar.gz
rspamd-d4b650a68c1502f2fe0aa910f5bad6eee0f6e11a.zip
[Minor] Mime_types: Allow application/octet-stream for all extensions
-rw-r--r--src/plugins/lua/mime_types.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index b8647491a..2e5dee967 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -368,7 +368,7 @@ local function check_mime_type(task)
end
local mt = settings['extension_map'][ext]
- if mt and ct then
+ if mt and ct and ct ~= 'application/octet-stream' then
local found
local mult
for _,v in ipairs(mt) do
@@ -379,7 +379,7 @@ local function check_mime_type(task)
end
end
- if not found then
+ if not found then
task:insert_result(settings['symbol_attachment'], mult, ext)
end
end