add accept

This commit is contained in:
wiaamm
2025-12-10 15:22:14 +02:00
parent ed0cc7b307
commit 616aeddbb2

View File

@@ -63,6 +63,10 @@ function NanoHandler.access(conf)
if verdict == nano.AttachmentVerdict.DROP then if verdict == nano.AttachmentVerdict.DROP then
kong.ctx.plugin.cleanup_needed = true kong.ctx.plugin.cleanup_needed = true
return nano.handle_custom_response(session_data, response) return nano.handle_custom_response(session_data, response)
elseif verdict == nano.AttachmentVerdict.ACCEPT then
kong.log.debug("Request passed without body inspection")
kong.ctx.plugin.cleanup_needed = true
return
end end
if contains_body == 1 then if contains_body == 1 then