Browse Source

[Minor] Require number as header order

Issue: #4246
tags/3.3
Vsevolod Stakhov 1 year ago
parent
commit
66a6a02d01
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lualib/lua_mime.lua

+ 1
- 1
lualib/lua_mime.lua View File

@@ -527,7 +527,7 @@ exports.modify_headers = function(task, hdr_alterations)
end
local add_tbl = hdr_flattened[hname].add
if hdr.value then
table.insert(add_tbl, {hdr.order or -1, hdr.value})
table.insert(add_tbl, {tonumber(hdr.order) or -1, hdr.value})
elseif type(hdr) == 'table' then
for _,v in ipairs(hdr) do
table.insert(add_tbl, {-1, v})

Loading…
Cancel
Save