From: Haruka Date: Tue, 30 Jun 2026 06:32:25 +0000 (+0900) Subject: Fix insertion of HTTP header in get_http_headers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6117%2Fhead;p=thirdparty%2Frspamd.git Fix insertion of HTTP header in get_http_headers --- 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