SwitchUserFilter Defaults to POST

Fixes gh-4183
This commit is contained in:
Josh Cummings
2020-03-27 13:41:49 -06:00
parent 81ad2958bd
commit eed71243cb
2 changed files with 42 additions and 6 deletions

View File

@@ -563,6 +563,6 @@ public class SwitchUserFilter extends GenericFilterBean
}
private static RequestMatcher createMatcher(String pattern) {
return new AntPathRequestMatcher(pattern, null, true, new UrlPathHelper());
return new AntPathRequestMatcher(pattern, "POST", true, new UrlPathHelper());
}
}