]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix multiplier set
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Feb 2018 16:35:05 +0000 (16:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Feb 2018 11:00:19 +0000 (11:00 +0000)
src/plugins/lua/mime_types.lua

index c1aa5e9306a9bfb10de33392869605fb137ae882..eac91adc695e6e8ed5a1d65207e3b22fa468bfb3 100644 (file)
@@ -878,9 +878,9 @@ local function check_mime_type(task)
         local found
         local mult
         for _,v in ipairs(mt) do
+          mult = v.mult
           if ct == v.ct then
             found = true
-            mult = v.mult
             break
           end
         end