Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions verynginx/lua_script/module/request_tester.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ function _M.test( matcher )
if tester[name] ~= nil then
if tester[name]( v ) ~= true then
return false
end
end
end
elseif tester[name] == nil then
return false
end
end

return true
Expand Down Expand Up @@ -55,10 +57,6 @@ function _M.test_var( match_operator, match_value, target_var )
if target_var == nil then
return true
end
elseif match_operator == '!' then
if target_var == nil then
return true
end
end

return false
Expand Down