Skip to content

Commit af23cc2

Browse files
committed
Add support for state override in new URL parser
See gh-32513
1 parent f21e05a commit af23cc2

File tree

3 files changed

+163
-41
lines changed

3 files changed

+163
-41
lines changed

spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public static UriComponentsBuilder fromUriString(String uri) throws InvalidUrlEx
235235
builder.host(urlRecord.host().toString());
236236
}
237237
if (urlRecord.port() != null) {
238-
builder.port(urlRecord.port());
238+
builder.port(urlRecord.port().toString());
239239
}
240240
if (urlRecord.path().isOpaque()) {
241241
builder.schemeSpecificPart(urlRecord.path().toString());

0 commit comments

Comments
 (0)