Skip to content

Commit a9de96f

Browse files
committed
Only check POST rules on POST requests... yeah...
1 parent 333c623 commit a9de96f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

waf/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ nw_rules.agent = {
230230
nw_rules.post = {
231231
rules = load_rules( 'post', nw_check_post ),
232232
check = function()
233-
if nw_check_post then
233+
if nw_check_post and ngx.req.get_method() == "POST" then
234234
-- force read POST body
235235
ngx.req.read_body()
236236

0 commit comments

Comments
 (0)