Skip to content

Commit

Permalink
responseContent() remove excess ByteBufFlux conversion (#2792)
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhenqiang authored and violetagg committed May 5, 2023
1 parent 6cc779a commit b9a8af9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2022 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2017-2023 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -165,7 +165,7 @@ static void discard(HttpClientOperations c) {
}
}

static final Function<ChannelOperations<?, ?>, Publisher<ByteBuf>> contentReceiver = ChannelOperations::receive;
static final Function<ChannelOperations<?, ?>, Flux<?>> contentReceiver = ChannelOperations::receiveObject;

static final Function<HttpClientOperations, HttpClientResponse> RESPONSE_ONLY = ops -> {
//defer the dispose to avoid over disposing on receive
Expand Down

0 comments on commit b9a8af9

Please sign in to comment.