Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义路由有问题,设置了header之后,不能根据header进行正确的路由 #22

Open
wangazhang opened this issue Apr 4, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@wangazhang
Copy link

wangazhang commented Apr 4, 2023

自定义路由有问题,设置了header之后,不能根据header进行正确的路由

dubbo-router-example 启动2个 back、2个middle 然后启动front

配置如下:
image
结果如下:
image

使用分支:0.1版本

@chuntaojun
Copy link
Member

收到,我们看下

@chuntaojun chuntaojun added the bug Something isn't working label Apr 4, 2023
@wangazhang
Copy link
Author

应该是这里:
com.tencent.polaris.plugins.router.rule.RuleBasedRouter#matchSource

image

匹配的时候要把命名空间调整为全部才行,否则不能匹配;
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants