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

trailing slash redirect documentation wrong #96

Open
user3160 opened this issue Jan 7, 2024 · 1 comment
Open

trailing slash redirect documentation wrong #96

user3160 opened this issue Jan 7, 2024 · 1 comment

Comments

@user3160
Copy link

user3160 commented Jan 7, 2024

According to documentation, r.POST("/api/v1/test", ...) should support both path: /api/v1/test and /api/v1/test/

This is not the case, when I call /api/v1/test/, I get a 405 Method not allowed error. The redirect to /api/v1/test does not happen.

Same applies when I define route as r.POST("/api/v1/test/", ...) In this case, only /api/v1/test/ works. When calling /api/v1/test I get HTTP 405 error.

@user3160
Copy link
Author

user3160 commented Jan 7, 2024

this is not same issue as #89

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

No branches or pull requests

1 participant