Skip to content

Commit

Permalink
Set executor of CompletableFuture for response with no content.
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsBrun committed Jul 14, 2022
1 parent 1cb23e8 commit 5806eda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public String getReasonPhrase() {

final CompletionStage<InputStream> stream = HelidonStructures.hasEntity(webClientResponse)
? webClientResponse.content().as(InputStream.class)
: CompletableFuture.supplyAsync(() -> NO_CONTENT_INPUT_STREAM);
: CompletableFuture.supplyAsync(() -> NO_CONTENT_INPUT_STREAM, executorServiceKeeper.getExecutorService(requestContext));

return stream.thenApply((a) -> {
responseContext.setEntityStream(new FilterInputStream(a) {
Expand Down

0 comments on commit 5806eda

Please sign in to comment.