mirror of
https://github.com/openappsec/attachment.git
synced 2025-12-31 13:49:09 +03:00
add accept
This commit is contained in:
@@ -63,6 +63,10 @@ function NanoHandler.access(conf)
|
||||
if verdict == nano.AttachmentVerdict.DROP then
|
||||
kong.ctx.plugin.cleanup_needed = true
|
||||
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
|
||||
|
||||
if contains_body == 1 then
|
||||
|
||||
Reference in New Issue
Block a user