-
Notifications
You must be signed in to change notification settings - Fork 109
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: httpRoute.match.prefix does not need to end in '/' #713
fix: httpRoute.match.prefix does not need to end in '/' #713
Conversation
Signed-off-by: Conor Evans <[email protected]>
@BennettJames @ysdongAmazon can you take a look here please? |
Checked the suffix pattern only exist under gateway route validation. I suppose the original author was trying to ensure consistency in path routing: Path-based routing: enforced convention is applied and routes are defined with prefixes /product/ and /product-special/. With this convention, a request with path /product-special/1234 would only match the second route, eliminating the ambiguity. |
Triggered unit test workflow.
|
I can see that, but it breaks a very standard case, which is just a simple Will fix the unit test tomorrow! Thanks for looking @ysdongAmazon 😄 E: I've unblocked myself using |
Signed-off-by: Conor Evans <[email protected]>
@ysdongAmazon committed the test fix! |
Issue #, if available: #712
Description of changes: Remove obligation for httpRoute.match.prefix to end in
/
- this does not match API behaviour.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.