Skip to content

Commit 8e9e4ee

Browse files
committed
lua报错
1 parent a57e9cb commit 8e9e4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openresty-proxy/https-proxy/lua.https.proxy.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ init_by_lua_block {
4646
if m then
4747
local first_dir = ngx.re.match(request_uri, "^/([^/]+)")
4848
if first_dir then
49-
local parts = ngx.re.match(first_dir[1], "^(.*)--(\d+)$")
49+
local parts = ngx.re.match(first_dir[1], [[^(.*)--(\d+)$]])
5050
if parts and parts[1] and parts[2] then
5151
return {
5252
proxy_pass = (m[2] or "http") .. "://" .. parts[1] .. ":" .. parts[2] .. request_uri

0 commit comments

Comments
 (0)