diff options
Diffstat (limited to 'src/plugins/lua/multimap.lua')
-rw-r--r-- | src/plugins/lua/multimap.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index a5152a458..519c64b22 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -712,14 +712,8 @@ local function multimap_callback(task, rule) received = function() local hdrs = task:get_received_headers() if hdrs and hdrs[1] then - local num_hdrs = 0 - for i in ipairs(hdrs) do - if i > num_hdrs then - num_hdrs = i - end - end for pos, h in ipairs(hdrs) do - match_received_header(rule, pos, num_hdrs, h) + match_received_header(rule, pos, #hdrs, h) end end end, |