File tree 1 file changed +0
-9
lines changed
spring-web/src/main/java/org/springframework/web/util
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -243,15 +243,6 @@ public static UriComponentsBuilder fromHttpUrl(String httpUrl) throws InvalidUrl
243
243
return fromUriString (httpUrl );
244
244
}
245
245
246
- private static void checkSchemeAndHost (String uri , @ Nullable String scheme , @ Nullable String host ) {
247
- if (StringUtils .hasLength (scheme ) && scheme .startsWith ("http" ) && !StringUtils .hasLength (host )) {
248
- throw new IllegalArgumentException ("[" + uri + "] is not a valid HTTP URL" );
249
- }
250
- if (StringUtils .hasLength (host ) && host .startsWith ("[" ) && !host .endsWith ("]" )) {
251
- throw new IllegalArgumentException ("Invalid IPV6 host in [" + uri + "]" );
252
- }
253
- }
254
-
255
246
/**
256
247
* Create a new {@code UriComponents} object from the URI associated with
257
248
* the given HttpRequest while also overlaying with values from the headers
You can’t perform that action at this time.
0 commit comments