Skip to content

Commit

Permalink
Update waf.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Apr 10, 2014
1 parent aa5a2fb commit 2b32a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ elseif PostCheck then
return
end
ngx.req.append_body(data)
gx.req.finish_body()
if body(data) then
return true
end
Expand All @@ -46,7 +45,8 @@ elseif PostCheck then
if less < chunk_size then
chunk_size = less
end
end
end
ngx.req.finish_body()
else
ngx.req.read_body()
local args = ngx.req.get_post_args()
Expand Down

0 comments on commit 2b32a34

Please sign in to comment.