Skip to content

Commit

Permalink
Use doAfterTerminate
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskleeh committed Feb 12, 2020
1 parent 1a837c8 commit f3df879
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ public HttpContent apply(Object message) {
});

httpContentPublisher = Flowable.fromPublisher(httpContentPublisher)
.doOnTerminate(() -> cleanupRequest(context, request));
.doAfterTerminate(() -> cleanupRequest(context, request));

DelegateStreamedHttpResponse streamedResponse = new DelegateStreamedHttpResponse(nativeResponse, httpContentPublisher);
io.netty.handler.codec.http.HttpHeaders headers = streamedResponse.headers();
Expand Down

0 comments on commit f3df879

Please sign in to comment.