Skip to content

Commit 769128a

Browse files
committed
Merge branch '6.0.x'
2 parents d8441fc + 7714110 commit 769128a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ final class DefaultWebClient implements WebClient {
7979
private static final Mono<ClientResponse> NO_HTTP_CLIENT_RESPONSE_ERROR = Mono.error(
8080
() -> new IllegalStateException("The underlying HTTP client completed without emitting a response."));
8181

82-
private static final DefaultClientRequestObservationConvention DEFAULT_OBSERVATION_CONVENTION = new DefaultClientRequestObservationConvention();
82+
private static final DefaultClientRequestObservationConvention DEFAULT_OBSERVATION_CONVENTION =
83+
new DefaultClientRequestObservationConvention();
84+
8385

8486
private final ExchangeFunction exchangeFunction;
8587

@@ -119,10 +121,10 @@ final class DefaultWebClient implements WebClient {
119121
this.uriBuilderFactory = uriBuilderFactory;
120122
this.defaultHeaders = defaultHeaders;
121123
this.defaultCookies = defaultCookies;
122-
this.observationRegistry = observationRegistry;
123-
this.observationConvention = observationConvention;
124124
this.defaultRequest = defaultRequest;
125125
this.defaultStatusHandlers = initStatusHandlers(statusHandlerMap);
126+
this.observationRegistry = observationRegistry;
127+
this.observationConvention = observationConvention;
126128
this.builder = builder;
127129
}
128130

@@ -697,7 +699,7 @@ private <T> Mono<T> applyStatusHandlers(ClientResponse response) {
697699
private static URI getUriToLog(URI uri) {
698700
if (StringUtils.hasText(uri.getQuery())) {
699701
try {
700-
uri = new URI(uri.getScheme(), uri.getHost(), uri.getPath(), null);
702+
uri = new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), uri.getPath(), null, null);
701703
}
702704
catch (URISyntaxException ex) {
703705
// ignore

0 commit comments

Comments
 (0)