From b1f679b1c5bad712fbe7fa7389761b531e5a690f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 10 Mar 2017 20:16:05 -0800 Subject: [PATCH] Fix HttpHandlerAutoConfiguration Fix HttpHandlerAutoConfiguration following upstream Spring Framework changes. --- .../autoconfigure/webflux/HttpHandlerAutoConfiguration.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webflux/HttpHandlerAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webflux/HttpHandlerAutoConfiguration.java index d3e0dce6d6..6cc63f333d 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webflux/HttpHandlerAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webflux/HttpHandlerAutoConfiguration.java @@ -125,10 +125,7 @@ public class HttpHandlerAutoConfiguration { strategiesBuilder.build()); WebHttpHandlerBuilder builder = WebHttpHandlerBuilder.webHandler(webHandler) .sessionManager(this.webSessionManager); - if (this.webFilters != null) { - builder.filters( - this.webFilters.toArray(new WebFilter[this.webFilters.size()])); - } + builder.filters(this.webFilters); return builder.build(); }