commit 6d1c271: [Minor] Preserve compatibility for empty keys

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Mar 2 09:42:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-03-02 09:38:34 +0000
URL: https://github.com/rspamd/rspamd/commit/6d1c2713ad56ede02bff68d848859797e06558df (HEAD -> master)

[Minor] Preserve compatibility for empty keys

---
 lualib/lua_mime.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua
index 3b8344e5f..72190b19e 100644
--- a/lualib/lua_mime.lua
+++ b/lualib/lua_mime.lua
@@ -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


More information about the Commits mailing list