diff --git a/core/src/main/java/org/springframework/security/intercept/web/FilterInvocation.java b/core/src/main/java/org/springframework/security/intercept/web/FilterInvocation.java index f2de9b39b8..2bd82943ec 100644 --- a/core/src/main/java/org/springframework/security/intercept/web/FilterInvocation.java +++ b/core/src/main/java/org/springframework/security/intercept/web/FilterInvocation.java @@ -78,7 +78,7 @@ public class FilterInvocation { } public HttpServletResponse getHttpResponse() { - return (HttpServletResponse) response; + return response; } /**