From 2b32a34dfc67e8bbb677987319a30357d5ae6e14 Mon Sep 17 00:00:00 2001 From: loveshell <82163261@qq.com> Date: Thu, 10 Apr 2014 21:45:39 +0800 Subject: [PATCH] Update waf.lua --- waf.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waf.lua b/waf.lua index 64adeac..f2a883a 100644 --- a/waf.lua +++ b/waf.lua @@ -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 @@ -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()