From d4b650a68c1502f2fe0aa910f5bad6eee0f6e11a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 27 Aug 2021 13:40:44 +0100 Subject: [PATCH] [Minor] Mime_types: Allow application/octet-stream for all extensions --- src/plugins/lua/mime_types.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index b8647491aa..2e5dee9677 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 -- 2.47.3