Skip to content

Commit

Permalink
Pass URI to Reactor Netty HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzawa-san authored and rstoyanchev committed Feb 14, 2023
1 parent 2578e38 commit dd3dc2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri,

return this.httpClient
.request(io.netty.handler.codec.http.HttpMethod.valueOf(method.name()))
.uri(uri.toString())
.uri(uri)
.send((request, outbound) -> requestCallback.apply(adaptRequest(method, uri, request, outbound)))
.responseConnection((response, connection) -> {
responseRef.set(new ReactorClientHttpResponse(response, connection));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri,

return this.httpClient
.request(io.netty5.handler.codec.http.HttpMethod.valueOf(method.name()))
.uri(uri.toString())
.uri(uri)
.send((request, outbound) -> requestCallback.apply(adaptRequest(method, uri, request, outbound)))
.responseConnection((response, connection) -> {
responseRef.set(new ReactorNetty2ClientHttpResponse(response, connection));
Expand Down

0 comments on commit dd3dc2d

Please sign in to comment.