Skip to content

Commit

Permalink
Align StandaloneMockMvcBuilder with trailing slash defaults
Browse files Browse the repository at this point in the history
Prior to this commit, trailing slash matching was disabled by default in
Spring MVC with gh-28552. `StandaloneMockMvcBuilder` was not changed as
a result and still had the trailing slash match option enabled.

This commit aligns the defaults in `StandaloneMockMvcBuilder` to better
reflect the expected behavior in tests.

Closes gh-32796
  • Loading branch information
evan-mc authored and bclozel committed May 14, 2024
1 parent ec4f3ea commit 376d783
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public class StandaloneMockMvcBuilder extends AbstractMockMvcBuilder<StandaloneM

private boolean useSuffixPatternMatch = false;

private boolean useTrailingSlashPatternMatch = true;
private boolean useTrailingSlashPatternMatch = false;

@Nullable
private Boolean removeSemicolonContent;
Expand Down

0 comments on commit 376d783

Please sign in to comment.