-
Notifications
You must be signed in to change notification settings - Fork 8k
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
feat(routes): Catch-All form should not include the slash before param #1061
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1061 +/- ##
==========================================
+ Coverage 96.65% 96.66% +<.01%
==========================================
Files 16 16
Lines 1706 1707 +1
==========================================
+ Hits 1649 1650 +1
Misses 49 49
Partials 8 8
Continue to review full report at Codecov.
|
This will potentially break installations that already rely on this behavior |
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.
I agree with @tboerger , I've faced this sometimes. However I always stripped the /
using https://golang.org/pkg/strings/#TrimPrefix which is much more secure. Using path[1:]
carries much more risk, because it trims whatever is the first char.
I'm not sure, yet.
EDIT: a notice on version changelog in bold BREAKING would help? it's a one line fix for broken behavior
Maybe add For breakdown api, add BREAKING doc LGTM and can wait #1084 discussing to get future steps. 😄 |
what needs to be done to merge this, is it just the tests or is there another reason? This breaks the binding functionality for optional parameters. |
since its been 2 years since this PR was submitted, would you be open to change it to be a configurable option based on a variable somewhere? If so where would I add that variable ? maybe get it via env once on init or something?
|
Any news on this issue? |
@appleboy we need to merge the PR to v1.6? |
Move to v1.7 milestone? |
Fix #279. Base on 42e0c82 work.