Enable trailing slash matching by default

This commit enables trailing slash matching in `PathPatternParser` by
default - this mirrors the default configuration in `PathMatcher`
implementations in MVC.
This commit is contained in:
Brian Clozel 2017-06-12 16:06:28 +02:00
parent 3ae84d6dd8
commit 1f0d107d37
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public class PathPatternParser {
// Whether the PathPatterns produced by the parser will allow patterns that don't
// have a trailing slash to match paths that may or may not have a trailing slash.
private boolean matchOptionalTrailingSlash = false;
private boolean matchOptionalTrailingSlash = true;
// If the parser produces case-sensitive PathPattern matchers.
private boolean caseSensitive = true;