Skip to content

Commit aa5a2fb

Browse files
committed
fix while boundary
1 parent 0c43635 commit aa5a2fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

waf.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ elseif PostCheck then
3737
return
3838
end
3939
ngx.req.append_body(data)
40+
gx.req.finish_body()
41+
if body(data) then
42+
return true
43+
end
4044
size = size + len(data)
4145
local less = content_length - size
4246
if less < chunk_size then
4347
chunk_size = less
4448
end
4549
end
46-
ngx.req.finish_body()
47-
if body(data) then
48-
return true
49-
end
5050
else
5151
ngx.req.read_body()
5252
local args = ngx.req.get_post_args()

0 commit comments

Comments
 (0)