From c8cb56ecdf4fe76afda40fc2d1684907dd6d2396 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Mon, 6 Feb 2017 14:00:29 -0700 Subject: [PATCH] polish --- .../cloud/gateway/config/GatewayAutoConfiguration.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java b/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java index a466eb024..750513836 100644 --- a/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java +++ b/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java @@ -67,7 +67,7 @@ public class GatewayAutoConfiguration { public HttpClient httpClient() { return HttpClient.create(opts -> { //opts.poolResources(PoolResources.elastic("proxy")); - //opts.disablePool(); //TODO: without we get io.netty.handler.codec.EncoderException: java.lang.IllegalStateException: unexpected message type: DefaultHttpRequest in tests + //opts.disablePool(); }); } @@ -84,10 +84,9 @@ public class GatewayAutoConfiguration { } @Bean - public FilteringWebHandler filteringWebHandler(//RoutingWebHandler webHandler, - List globalFilters, + public FilteringWebHandler filteringWebHandler(List globalFilters, Map routeFilters) { - return new FilteringWebHandler(/*webHandler,*/ globalFilters, routeFilters); + return new FilteringWebHandler(globalFilters, routeFilters); } @Bean