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

Teach route to squeeze slashes #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SokratisVidros
Copy link

  • Sanitise paths during route declaration and matching
  • Add basic error handling during sanitization

That way accidental inbound requests such as http://foo.com//path/to/server will match /path/to/server and be routed successfully.

- Sanitise paths during route declaration and matching
- Add basic error handling
@jonathanong
Copy link
Member

I understand the intention here, but it should be optional through a flag

@SokratisVidros
Copy link
Author

Is there a scenario that a developer would want multiple slashes to work?

@SokratisVidros SokratisVidros changed the title Teach route to squeeze backslashes Teach route to squeeze slashes Feb 25, 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.

None yet

2 participants