Skip to content

Commit 9cc5ea9

Browse files
committed
Polishing
Signed-off-by: Ben Hale <bhale@pivotal.io>
1 parent d21bd89 commit 9cc5ea9

File tree

1 file changed

+2
-1
lines changed
  • cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/util

1 file changed

+2
-1
lines changed

cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/util/Operator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ public <T> Mono<T> parseBody(Class<T> bodyType) {
166166
public <T> Flux<T> parseBodyToFlux(Function<HttpClientResponseWithBody, Publisher<T>> responseTransformer) {
167167
return this.responseReceiver.responseConnection((response, connection) -> {
168168
attachChannelHandlers(response, connection);
169-
ByteBufFlux body = connection.inbound().receive();
169+
ByteBufFlux body = ByteBufFlux.fromInbound(connection.inbound().receive()
170+
.doFinally(signalType -> connection.dispose()));
170171

171172
return Mono.just(HttpClientResponseWithBody.of(body, response));
172173
})

0 commit comments

Comments
 (0)