Skip to content

Commit

Permalink
DROP is an alter action
Browse files Browse the repository at this point in the history
  • Loading branch information
p0pr0ck5 committed Sep 7, 2016
1 parent d606b1d commit 247e7b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/resty/waf/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ _M.version = "0.8.1"
_M.alter_actions = {
ACCEPT = true,
DENY = true,
DROP = true,
}

_M.disruptive_lookup = {
Expand Down
9 changes: 9 additions & 0 deletions t/unit/actions/disruptive/06_alter_actions.t
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 247e7b0

Please sign in to comment.