Skip to content

Commit 2b32a34

Browse files
committed
Update waf.lua
1 parent aa5a2fb commit 2b32a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

waf.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ elseif PostCheck then
3737
return
3838
end
3939
ngx.req.append_body(data)
40-
gx.req.finish_body()
4140
if body(data) then
4241
return true
4342
end
@@ -46,7 +45,8 @@ elseif PostCheck then
4645
if less < chunk_size then
4746
chunk_size = less
4847
end
49-
end
48+
end
49+
ngx.req.finish_body()
5050
else
5151
ngx.req.read_body()
5252
local args = ngx.req.get_post_args()

0 commit comments

Comments
 (0)