From 53198cdb5d84c7180b71c63549080aedefb47aa4 Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 6 Dec 2024 14:35:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BD=91=E5=85=B3=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E6=94=AF=E6=8C=81fs-server=20#2801?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gateway/lua/router_srv.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gateway/lua/router_srv.lua b/src/gateway/lua/router_srv.lua index 7eb361df0e..ec28535b7f 100644 --- a/src/gateway/lua/router_srv.lua +++ b/src/gateway/lua/router_srv.lua @@ -52,6 +52,9 @@ if security_paths ~= nil and #security_paths ~= 0 then local path = ngx.var.uri for _, item in ipairs(security_paths) do local pathPattern = "/web/" .. service_name .. item.path + if service_name == "fs-server" then + pathPattern = "/web/fs%-server" .. item.path + end if string.find(path, "^" .. pathPattern) ~= nil and service_name == item.service and method == item.method then is_secure = true end