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

如何让路由忽略大小写 #1200

Closed
Just-Like opened this issue Sep 22, 2024 · 1 comment
Closed

如何让路由忽略大小写 #1200

Just-Like opened this issue Sep 22, 2024 · 1 comment
Labels
invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) stale

Comments

@Just-Like
Copy link

如何让路由忽略大小写,本来想通过中间件修改ctx.Request.URI().SetPath(strings.ToLower(string(uri))),测试后发现请求进来后先走的路由表,路由表没找到就不会走业务逻辑而是执行全局中间件,能否添加一个配置项设置成可忽略路由大小写

@github-actions github-actions bot added the invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) label Sep 22, 2024
Copy link

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 22, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) stale
Development

No branches or pull requests

1 participant