Fix RequestCache

Issue: gh-4789
This commit is contained in:
Rob Winch 2017-11-15 10:53:38 -06:00
parent a6733fae50
commit 0b1618d8b4
1 changed files with 3 additions and 1 deletions

View File

@ -456,7 +456,9 @@ public class ServerHttpSecurity {
}
protected void configure(ServerHttpSecurity http) {
http.addFilterAt(new ServerRequestCacheWebFilter(), SecurityWebFiltersOrder.SERVER_REQUEST_CACHE);
ServerRequestCacheWebFilter filter = new ServerRequestCacheWebFilter();
filter.setRequestCache(this.requestCache);
http.addFilterAt(filter, SecurityWebFiltersOrder.SERVER_REQUEST_CACHE);
}
public ServerHttpSecurity and() {