Skip to content

Commit 7b4dd7c

Browse files
committed
fix(*): remove unnecessary exception according review comments
Signed-off-by: Stepan Mikhailiuk <istepancar@gmail.com>
1 parent c6ed845 commit 7b4dd7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/SetRequestUriGatewayFilterFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ protected Optional<URI> determineRequestUri(ServerWebExchange exchange, Config c
8484
String url = getUri(exchange, config);
8585
URI uri = URI.create(url);
8686
if (!uri.isAbsolute()) {
87-
throw new IllegalArgumentException("URI is not absolute");
87+
log.info("Request url is invalid: url={}, error=URI is not absolute", url);
88+
return Optional.ofNullable(null);
8889
}
8990
return Optional.of(uri);
9091
}

0 commit comments

Comments
 (0)