From e2d81fa602056d0121fb8d0ec81ba491283d8bab Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 29 Aug 2022 21:16:31 +0100 Subject: [PATCH] [Minor] Fix legacy string values in modify headers routine Issue: #4246 --- lualib/lua_mime.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index 02329badd..01a2fc95e 100644 --- a/lualib/lua_mime.lua +++ b/lualib/lua_mime.lua @@ -532,6 +532,8 @@ exports.modify_headers = function(task, hdr_alterations) for _,v in ipairs(hdr) do table.insert(add_tbl, {-1, v}) end + elseif type(hdr) == 'string' then + table.insert(add_tbl, {-1, hdr}) end end if hdr_alterations.order then -- 2.39.5