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

go-zero doesn't support case-insensitive route #4392

Open
cliffwoodave14 opened this issue Sep 25, 2024 · 0 comments · May be fixed by #4401
Open

go-zero doesn't support case-insensitive route #4392

cliffwoodave14 opened this issue Sep 25, 2024 · 0 comments · May be fixed by #4401

Comments

@cliffwoodave14
Copy link

Describe the bug
It seems go-zero doesn't support case-insensitive route. E.g. If I have a path as /subscription/:id/group/name, then I expect it also works fine with an input /subscription/id/Group/Name. However, go-zero directly returns 404 page not found error. I know Linux system is case-sensitive, however, for endusers, they don't care about upper case or lower case. This will directly impact user experience.

To Reproduce
Steps to reproduce the behavior, if applicable:

  1. The code is

  2. The error is

    
    

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environments (please complete the following information):

  • OS: [e.g. Linux]
  • go-zero version [e.g. 1.2.1]
  • goctl version [e.g. 1.2.1, optional]

More description
Add any other context about the problem here.

@cyntler cyntler linked a pull request Sep 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant