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

mux: filter for invalid root path pattern #498

Merged
merged 4 commits into from
Oct 26, 2023

Conversation

HRogge
Copy link
Collaborator

@HRogge HRogge commented Oct 19, 2023

Mux router has trouble with root path matching because of the different semantics of empty path and "/" path. Add the already existing filter into all relevant router functions and add extend test cases to check all combinations.

mux/router_test.go Outdated Show resolved Hide resolved
Copy link
Member

@jkralik jkralik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just fix the import :)

@jkralik jkralik merged commit 38e3fa4 into plgd-dev:master Oct 26, 2023
10 checks passed
@jkralik
Copy link
Member

jkralik commented Oct 26, 2023

Thx for contribution :).

@HRogge HRogge deleted the mux-root-path branch October 26, 2023 11:30
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