Include port when logging URI in DefaultWebClient

Closes gh-30519
This commit is contained in:
rstoyanchev 2023-11-07 16:24:01 +00:00
parent 620f558547
commit 75d1278bde
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,7 @@ final class DefaultWebClient implements WebClient {
private static URI getUriToLog(URI uri) {
if (StringUtils.hasText(uri.getQuery())) {
try {
uri = new URI(uri.getScheme(), uri.getHost(), uri.getPath(), null);
uri = new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), uri.getPath(), null, null);
}
catch (URISyntaxException ex) {
// ignore