apaloleg commented on code in PR #12826:
URL: https://github.com/apache/apisix/pull/12826#discussion_r2641138269


##########
apisix/http/router/radixtree_host_uri.lua:
##########
@@ -34,8 +35,23 @@ local only_uri_router
 local _M = {version = 0.1}
 
 
-local function push_host_router(route, host_routes, only_uri_routes)
-    if type(route) ~= "table" then
+local function get_host_radixtree_route(host_rev, sub_router)
+    return {
+        id = host_rev,
+        paths = host_rev,
+        sub_router = sub_router,
+        filter_fun = function(vars, opts, ...)
+            return sub_router:dispatch(vars.uri, opts, ...)
+        end,
+        handler = function (api_ctx, match_opts)
+            api_ctx.real_curr_req_matched_host = match_opts.matched._path
+        end
+    }
+end
+
+
+local function push_host_router(route, host_routes, only_uri_routes, mode)
+    if route == nil or (type(route) ~= "table" or  route.value == nil) then

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to