Skip to content

Commit

Permalink
fix while boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Apr 9, 2014
1 parent 0c43635 commit aa5a2fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions waf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ elseif PostCheck then
return
end
ngx.req.append_body(data)
gx.req.finish_body()
if body(data) then
return true
end
size = size + len(data)
local less = content_length - size
if less < chunk_size then
chunk_size = less
end
end
ngx.req.finish_body()
if body(data) then
return true
end
else
ngx.req.read_body()
local args = ngx.req.get_post_args()
Expand Down

0 comments on commit aa5a2fb

Please sign in to comment.