From 935b30d324270bc8a2110f587078b9d37ece606d Mon Sep 17 00:00:00 2001 From: Haruka Date: Tue, 30 Jun 2026 15:32:25 +0900 Subject: [PATCH] Fix insertion of HTTP header in get_http_headers --- lualib/lua_scanners/icap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/lua_scanners/icap.lua b/lualib/lua_scanners/icap.lua index dc10db26c0..00851c006c 100644 --- a/lualib/lua_scanners/icap.lua +++ b/lualib/lua_scanners/icap.lua @@ -282,7 +282,7 @@ local function icap_check(task, content, digest, rule, maybe_part) local function get_http_headers() local http_hlen = 2 - table.insert(http_headers, 'HTTP/1.0 200 OK\r\n') + table.insert(http_headers, 1, 'HTTP/1.0 200 OK\r\n') table.insert(http_headers, string.format('Date: %s\r\n', rspamd_util.time_to_string(rspamd_util.get_time()))) table.insert(http_headers, string.format('Server: %s\r\n', 'Apache/2.4')) if rule.user_agent ~= "none" then -- 2.47.3