Skip to content

Commit 686219a

Browse files
committed
fix post data mpty
1 parent 513c19d commit 686219a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function ua()
137137
end
138138
function body(data)
139139
for _,rule in pairs(postrules) do
140-
if rule ~="" and ngxmatch(unescape(data),rule,"imjo") then
140+
if rule ~="" and data~="" and ngxmatch(unescape(data),rule,"imjo") then
141141
log('POST',ngx.var.request_uri,data,rule)
142142
say_html()
143143
return true

0 commit comments

Comments
 (0)