From 247e7b0868fe396157a204b40e997a7e06140866 Mon Sep 17 00:00:00 2001 From: Robert Paprocki Date: Wed, 7 Sep 2016 13:29:33 -0700 Subject: [PATCH] DROP is an alter action --- lib/resty/waf/actions.lua | 1 + t/unit/actions/disruptive/06_alter_actions.t | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/lib/resty/waf/actions.lua b/lib/resty/waf/actions.lua index c95bbcb1..cd668a45 100644 --- a/lib/resty/waf/actions.lua +++ b/lib/resty/waf/actions.lua @@ -9,6 +9,7 @@ _M.version = "0.8.1" _M.alter_actions = { ACCEPT = true, DENY = true, + DROP = true, } _M.disruptive_lookup = { diff --git a/t/unit/actions/disruptive/06_alter_actions.t b/t/unit/actions/disruptive/06_alter_actions.t index a58bcd09..11f52f9b 100644 --- a/t/unit/actions/disruptive/06_alter_actions.t +++ b/t/unit/actions/disruptive/06_alter_actions.t @@ -73,3 +73,12 @@ GET /t SCORE --- no_error_log [error] + +=== TEST 5: DROP is an alter action +--- request +GET /t +--- error_code: 200 +--- response_body_like +DROP +--- no_error_log +[error]