zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.34k stars 3.96k forks source link

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

Open cliffwoodave14 opened 1 month ago

cliffwoodave14 commented 1 month ago

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):

More description Add any other context about the problem here.