-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
router: fix matching when all domains have wildcards (#4326)
When all domains of all virtual hosts had wildcard characters and there was a default virtual host, RouteMatcher::findVirtualHost() used to erroneously ignore the wildcard suffixes. This patch fixes the issue and introduces a unit test that covers this case. Risk level: Medium. The fix is straightforward, but users who rely on the erroneous behavior might be affected. Testing: Introduced TestRoutesWithWildcardAndDefaultOnly Signed-off-by: Tal Nordan tal.nordan@solo.io
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters