replace ngx.re.match to ngx.re.find

pull/81/head
TonyChyi 2016-01-06 16:48:27 +08:00
parent c56b191735
commit 884a6f387a
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
require 'config'
local match = string.match
local ngxmatch=ngx.re.match
local ngxmatch=ngx.re.find
local unescape=ngx.unescape_uri
local get_headers = ngx.req.get_headers
local optionIsOn = function (options) return options == "on" and true or false end

View File

@ -1,6 +1,6 @@
local content_length=tonumber(ngx.req.get_headers()['content-length'])
local method=ngx.req.get_method()
local ngxmatch=ngx.re.match
local ngxmatch=ngx.re.find
if whiteip() then
elseif blockip() then
elseif denycc() then