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

Fix wildcard route match #603

Merged
merged 6 commits into from
Oct 4, 2022
Merged

Fix wildcard route match #603

merged 6 commits into from
Oct 4, 2022

Conversation

afflerbach
Copy link
Contributor

Fix /** path matching.


Reviewer checklist
  • Read PR description: a summary about the changes is required
  • Changelog updated
  • Documentation: docs/{Reference, Cli, ...}, Docker and cli help/usage
  • Pulled branch, manually tested
  • Verified requirements are met
  • Reviewed the code
  • Reviewed the related tests

@afflerbach afflerbach requested a review from johakoch September 29, 2022 10:59
Compensate for single trailing slashes:
* `/p`  endpoint matches requests for `/p` and `/p/` but NOT `/p//`
* `/p/` endpoint matches requests for `/p` and `/p/` but not `/p//`
@afflerbach afflerbach force-pushed the fix-wildcard-route-match branch from 835c47c to 9aa5540 Compare September 30, 2022 10:20
@afflerbach afflerbach changed the base branch from master to release.1.10 September 30, 2022 10:21
@afflerbach afflerbach force-pushed the fix-wildcard-route-match branch from 9aa5540 to f3f5967 Compare September 30, 2022 10:56
@johakoch
Copy link
Collaborator

Regarding "This condition did nothing special!?":
The parameter forEndpoint was necessary after #441 and before #459. The code should have been simplified with #459.

server/mux_test.go Outdated Show resolved Hide resolved
server/mux_test.go Outdated Show resolved Hide resolved
@johakoch johakoch force-pushed the fix-wildcard-route-match branch from 4292801 to 6ded8e4 Compare October 4, 2022 07:04
afflerbach and others added 2 commits October 4, 2022 09:50
Co-authored-by: Johannes Koch <53434855+johakoch@users.noreply.github.com>
Co-authored-by: Johannes Koch <53434855+johakoch@users.noreply.github.com>
@johakoch johakoch merged commit 6bdf284 into release.1.10 Oct 4, 2022
@johakoch johakoch deleted the fix-wildcard-route-match branch October 4, 2022 07:58
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