Browse Source

polish

pull/41/head
Spencer Gibb 8 years ago
parent
commit
c8cb56ecdf
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 7
      src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java

7
src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java

@ -67,7 +67,7 @@ public class GatewayAutoConfiguration {
public HttpClient httpClient() { public HttpClient httpClient() {
return HttpClient.create(opts -> { return HttpClient.create(opts -> {
//opts.poolResources(PoolResources.elastic("proxy")); //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 @Bean
public FilteringWebHandler filteringWebHandler(//RoutingWebHandler webHandler, public FilteringWebHandler filteringWebHandler(List<GlobalFilter> globalFilters,
List<GlobalFilter> globalFilters,
Map<String, RouteFilter> routeFilters) { Map<String, RouteFilter> routeFilters) {
return new FilteringWebHandler(/*webHandler,*/ globalFilters, routeFilters); return new FilteringWebHandler(globalFilters, routeFilters);
} }
@Bean @Bean

Loading…
Cancel
Save