]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Preserve compatibility for empty keys
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Mar 2021 09:38:34 +0000 (09:38 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Mar 2021 09:38:34 +0000 (09:38 +0000)
lualib/lua_mime.lua

index 3b8344e5fadb32eb3b1ca6390eeb7580689735c0..72190b19e6458572431699ff6f0c11196903773d 100644 (file)
@@ -551,8 +551,8 @@ exports.modify_headers = function(task, hdr_alterations)
   end
 
   task:set_milter_reply({
-    add_headers = add,
-    remove_headers = remove
+    add_headers = hdr_alterations.add,
+    remove_headers = hdr_alterations.remove
   })
 
   for hname,flat_rules in pairs(hdr_flattened) do