Skip to content

Commit

Permalink
Correct merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dstepanov committed Oct 21, 2022
1 parent c67e2b1 commit 671a37a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@ protected void removeHandler(ChannelHandlerContext ctx) {
}

@Override
protected void buildResponse(Promise<? super HttpResponse<?>> promise, StreamedHttpResponse msg) {
protected void buildResponse(Promise<? super MutableHttpResponse<?>> promise, StreamedHttpResponse msg) {
promise.trySuccess(new NettyStreamedHttpResponse<>(msg, conversionService));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ private DefaultHttpClient buildClient(
resolveSocketChannelFactory(configuration, beanContext),
clientCustomizer,
invocationInstrumenterFactories,
clientId
clientId,
conversionService
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
*/
@Internal
final class MutableHttpRequestWrapper<B> extends HttpRequestWrapper<B> implements MutableHttpRequest<B> {
private final ConversionService<?> conversionService;
private ConversionService conversionService;

@Nullable
private B body;
@Nullable
private URI uri;

MutableHttpRequestWrapper(ConversionService<?> conversionService, HttpRequest<B> delegate) {
MutableHttpRequestWrapper(ConversionService conversionService, HttpRequest<B> delegate) {
super(delegate);
this.conversionService = conversionService;
}

static MutableHttpRequest<?> wrapIfNecessary(ConversionService<?> conversionService, HttpRequest<?> request) {
static MutableHttpRequest<?> wrapIfNecessary(ConversionService conversionService, HttpRequest<?> request) {
if (request instanceof MutableHttpRequest<?>) {
return (MutableHttpRequest<?>) request;
} else {
Expand Down Expand Up @@ -128,4 +128,9 @@ public <T> MutableHttpRequest<T> body(T body) {
this.body = (B) body;
return (MutableHttpRequest<T>) this;
}

@Override
public void setConversionService(ConversionService conversionService) {
this.conversionService = conversionService;
}
}

0 comments on commit 671a37a

Please sign in to comment.