wklken commented on issue #10555:
URL: https://github.com/apache/apisix/issues/10555#issuecomment-1829021844
and If I change the code, encode the uri before pass it to
`uri_router.dispatch`, it works
> apisix/http/route.lua
```lua
function _M.match_uri(uri_router, match_opts, api_ctx)
core.table.clear(match_opts)
match_opts.method = api_ctx.var.request_method
match_opts.host = api_ctx.var.host
match_opts.remote_addr = api_ctx.var.remote_addr
match_opts.vars = api_ctx.var
match_opts.matched = core.tablepool.fetch("matched_route_record", 0, 4)
-- local ok = uri_router:dispatch(api_ctx.var.uri, match_opts, api_ctx,
match_opts)
local ok =
uri_router:dispatch(core.utils.uri_safe_encode(api_ctx.var.uri), match_opts,
api_ctx, match_opts)
return ok
end
```
--
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]