-
Notifications
You must be signed in to change notification settings - Fork 37
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
add: trailing slash middleware to prevent unexpected api crash #16
add: trailing slash middleware to prevent unexpected api crash #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add test cases for this.
This is done @lucifercr07 |
"testing" | ||
) | ||
|
||
// demo test case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Remove if not required
@tarun-29 please fix lint issues. |
Resolved @lucifercr07 |
This PR introduces an enhancement by adding trailing slash handling in the middleware to prevent unexpected 404 errors when a URL ends with a trailing slash.