From 686219a71c74b471d05129bf33da53efc068b2b3 Mon Sep 17 00:00:00 2001 From: loveshell <82163261@qq.com> Date: Thu, 11 Sep 2014 11:39:45 +0800 Subject: [PATCH] fix post data mpty --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 290f6fd..ee2a29f 100644 --- a/init.lua +++ b/init.lua @@ -137,7 +137,7 @@ function ua() end function body(data) for _,rule in pairs(postrules) do - if rule ~="" and ngxmatch(unescape(data),rule,"imjo") then + if rule ~="" and data~="" and ngxmatch(unescape(data),rule,"imjo") then log('POST',ngx.var.request_uri,data,rule) say_html() return true