Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Dec 20, 2024
1 parent fe52f2a commit e7a1c32
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apisix/http/router/radixtree_host_uri.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ local function create_radixtree_router(routes)
end

function _M.match(api_ctx)
local user_routes = core.table.deepcopy(_M.user_routes)
local user_routes = _M.user_routes
local _, service_version = get_services()
if not cached_router_version or cached_router_version ~= user_routes.conf_version
or not cached_service_version or cached_service_version ~= service_version
Expand Down
2 changes: 1 addition & 1 deletion apisix/http/router/radixtree_uri.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ local _M = {version = 0.2}
local uri_routes = {}
local uri_router
function _M.match(api_ctx)
local user_routes = core.table.deepcopy(_M.user_routes)
local user_routes = _M.user_routes
local _, service_version = get_services()
if not cached_router_version or cached_router_version ~= user_routes.conf_version
or not cached_service_version or cached_service_version ~= service_version
Expand Down
2 changes: 1 addition & 1 deletion apisix/http/router/radixtree_uri_with_parameter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ local _M = {}
local uri_routes = {}
local uri_router
function _M.match(api_ctx)
local user_routes = core.table.deepcopy(_M.user_routes)
local user_routes = _M.user_routes
local _, service_version = get_services()
if not cached_router_version or cached_router_version ~= user_routes.conf_version
or not cached_service_version or cached_service_version ~= service_version
Expand Down
2 changes: 1 addition & 1 deletion apisix/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function _M.handle_upstream(api_ctx, route, enable_websocket)
api_ctx.matched_route = route
end

local route_val = route.value
local route_val = core.table.deepcopy(route.value)

api_ctx.matched_upstream = (route.dns_value and
route.dns_value.upstream)
Expand Down

0 comments on commit e7a1c32

Please sign in to comment.