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:
parent
3ae84d6dd8
commit
1f0d107d37
|
@ -33,7 +33,7 @@ public class PathPatternParser {
|
||||||
|
|
||||||
// Whether the PathPatterns produced by the parser will allow patterns that don't
|
// 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.
|
// 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.
|
// If the parser produces case-sensitive PathPattern matchers.
|
||||||
private boolean caseSensitive = true;
|
private boolean caseSensitive = true;
|
||||||
|
|
Loading…
Reference in New Issue