Browse Source

Updates to new reactor netty chunkedTransfer method.

fixes gh-577
pull/2163/head
Spencer Gibb 6 years ago
parent
commit
175f90ac6f
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 6
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java

6
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java

@ -100,10 +100,8 @@ public class NettyRoutingFilter implements GlobalFilter, Ordered { @@ -100,10 +100,8 @@ public class NettyRoutingFilter implements GlobalFilter, Ordered {
boolean preserveHost = exchange.getAttributeOrDefault(PRESERVE_HOST_HEADER_ATTRIBUTE, false);
HttpClient client = chunkedTransfer? this.httpClient.chunkedTransfer() :
this.httpClient.noChunkedTransfer();
Flux<HttpClientResponse> responseFlux = client
Flux<HttpClientResponse> responseFlux = this.httpClient
.chunkedTransfer(chunkedTransfer)
.request(method)
.uri(url)
.send((req, nettyOutbound) -> {

Loading…
Cancel
Save