scan_mime_parts = true,
scan_text_mime = false,
scan_image_mime = false,
+ keepalive = true,
+ auth_string = nil
}
default_conf = lua_util.override_defaults(default_conf, opts)
hdrs['X-KAV-HostIP'] = tostring(ip)
end
+ if rule.auth_string then
+ hdrs['Authorization'] = rule.auth_string
+ end
+
if task:has_from() then
hdrs['X-KAV-ObjectURL'] = string.format('[from:%s]', task:get_from()[1].addr)
end
body = req_body,
headers = hdrs,
timeout = rule.timeout,
+ keepalive = rule.keepalive,
}
local function kas_callback(http_err, code, body, headers)