]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix insertion of HTTP header in get_http_headers 6117/head
authorHaruka <mrx@hcc.im>
Tue, 30 Jun 2026 06:32:25 +0000 (15:32 +0900)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2026 06:32:25 +0000 (15:32 +0900)
lualib/lua_scanners/icap.lua

index dc10db26c04d05da1fbb9a2cc570dcb97bf71c95..00851c006ccc9839ff98b624ae479bab2f5ca031 100644 (file)
@@ -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