-
Notifications
You must be signed in to change notification settings - Fork 134
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: avoid matching capture pattern name ( Fixes #291) #301
Conversation
Thank you @jfraudeau ! Could you please add a test for this as well? |
Test added @ocramz thanks for your time |
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.
Thank you, but I don't think the implemented behaviour is correct, see comments on the test.
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.
Sorry for taking so long @jfraudeau , would you mind adding a changelog entry for this as well? Thank you!
Oh and please fix the conflict in the test files. Thanks again! |
All done, I hope the changelog entry is clear enough |
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.
All good thank you @jfraudeau ! 👍
As stated in the issue #291, GET /test/:capture would match a capture defined as
get "/test/:capture" _handler
with thecapture
absent from params.With this fix the param would be set to literally
":capture