aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/lua_scanners/icap.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lualib/lua_scanners/icap.lua b/lualib/lua_scanners/icap.lua
index 801db72f6..6ddd5fee6 100644
--- a/lualib/lua_scanners/icap.lua
+++ b/lualib/lua_scanners/icap.lua
@@ -69,7 +69,9 @@ local function icap_check(task, content, digest, rule)
end
if string.find(s, '[%a%d-+]-:') then
local _,_,key,value = tostring(s):find("([%a%d-+]-):%s?(.+)")
- icap_headers[key] = value
+ if key ~= nil then
+ icap_headers[key] = value
+ end
end
end
lua_util.debugm(rule.name, task, '%s: icap_headers: %s',