mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Prior to this commit, WebClientUtils.getRequestDescription() created a new URI object on every invocation. Since the URI constructor includes validation and parsing, which is already performed by the parameter URI object, this was unnecessarily expensive for a logging utility. This commit reuses the original URI's string representation to avoid redundant parsing. This commit also strips userInfo, query, and fragment from the log description even if URIs contain only userInfo or fragment (without a query). Closes gh-36641 Signed-off-by: 박동윤 (Park Dong-Yun) <ehddbs7458@gmail.com>