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

add: trailing slash middleware to prevent unexpected api crash #16

Merged

Conversation

tarun-29
Copy link
Contributor

@tarun-29 tarun-29 commented Oct 2, 2024

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.

Copy link
Contributor

@lucifercr07 lucifercr07 left a 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.

@tarun-29
Copy link
Contributor Author

tarun-29 commented Oct 3, 2024

Please add test cases for this.

This is done @lucifercr07

"testing"
)

// demo test case
Copy link
Contributor

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

@lucifercr07
Copy link
Contributor

@tarun-29 please fix lint issues.

@tarun-29
Copy link
Contributor Author

tarun-29 commented Oct 4, 2024

@tarun-29 please fix lint issues.

Resolved @lucifercr07

@lucifercr07 lucifercr07 merged commit 911438f into DiceDB:master Oct 4, 2024
2 checks passed
yashbudhia pushed a commit to yashbudhia/playground-mono that referenced this pull request Oct 6, 2024
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 this pull request may close these issues.

2 participants