mirror of
https://github.com/openappsec/attachment.git
synced 2025-12-31 05:39:07 +03:00
add accept
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user