aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_mime.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_mime.lua')
-rw-r--r--lualib/lua_mime.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua
index 01a2fc95e..50c6ccd43 100644
--- a/lualib/lua_mime.lua
+++ b/lualib/lua_mime.lua
@@ -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})