瀏覽代碼

[Minor] Fix corner cases

tags/3.4
Vsevolod Stakhov 1 年之前
父節點
當前提交
272503b1ba
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      lualib/lua_mime.lua

+ 2
- 2
lualib/lua_mime.lua 查看文件

@@ -590,8 +590,8 @@ exports.modify_headers = function(task, hdr_alterations, mode)

if mode == 'compat' then
-- Clear empty alterations in the compat mode
if not next(add_headers) then add_headers = nil end
if not next(hdr_alterations.remove) then hdr_alterations.remove = nil end
if add_headers and not next(add_headers) then add_headers = nil end
if hdr_alterations.remove and not next(hdr_alterations.remove) then hdr_alterations.remove = nil end
end
task:set_milter_reply({
add_headers = add_headers,

Loading…
取消
儲存