diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-09 15:08:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-09 15:08:05 +0100 |
commit | 4283a774fdfd5582ab516387a7a77969c40bb56f (patch) | |
tree | b8a90237457b15f82c720e96d8f2eea2d577a86d /lualib/lua_magic/init.lua | |
parent | da99d2d9118c0e67e40d8e568fcda998ad329d45 (diff) | |
download | rspamd-4283a774fdfd5582ab516387a7a77969c40bb56f.tar.gz rspamd-4283a774fdfd5582ab516387a7a77969c40bb56f.zip |
[Minor] Lua_magic: Some minor fixes
Diffstat (limited to 'lualib/lua_magic/init.lua')
-rw-r--r-- | lualib/lua_magic/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_magic/init.lua b/lualib/lua_magic/init.lua index 27f968149..0784b4a77 100644 --- a/lualib/lua_magic/init.lua +++ b/lualib/lua_magic/init.lua @@ -326,9 +326,9 @@ exports.detect_mime_part = function(part, log_obj) return ext,types[ext] end - ext,weight = exports.detect(part:get_content(), log_obj) + ext = exports.detect(part:get_content(), log_obj) - if ext and weight and weight > 20 then + if ext then return ext,types[ext] end |