Skip to content

Commit 75d1278

Browse files
committed
Include port when logging URI in DefaultWebClient
Closes gh-30519
1 parent 620f558 commit 75d1278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ private <T> Mono<T> applyStatusHandlers(ClientResponse response) {
698698
private static URI getUriToLog(URI uri) {
699699
if (StringUtils.hasText(uri.getQuery())) {
700700
try {
701-
uri = new URI(uri.getScheme(), uri.getHost(), uri.getPath(), null);
701+
uri = new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), uri.getPath(), null, null);
702702
}
703703
catch (URISyntaxException ex) {
704704
// ignore

0 commit comments

Comments
 (0)