Skip to content

Commit

Permalink
Bumping versions
Browse files Browse the repository at this point in the history
  • Loading branch information
spring-builds committed Nov 4, 2023
1 parent d0f8dd4 commit 2f39ba7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public static HandlerFilterFunction<ServerResponse, ServerResponse> retry(Consum
}

private static boolean isRetryableStatusCode(HttpStatusCode httpStatus, RetryConfig config) {
return config.getSeries().stream()
.anyMatch(series -> HttpStatus.Series.resolve(httpStatus.value()) == series);
return config.getSeries().stream().anyMatch(series -> HttpStatus.Series.resolve(httpStatus.value()) == series);
}

public static class HttpStatusRetryPolicy extends NeverRetryPolicy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
import static org.springframework.cloud.gateway.support.GatewayToStringStyler.filterToStringCreator;

/**
* This filter blocks the request if the size in Content-Length header value is more than the permissible size.
* Has no effect if Content-Length header is missing.
* The default request size is 5 MB.
* This filter blocks the request if the size in Content-Length header value is more than
* the permissible size. Has no effect if Content-Length header is missing. The default
* request size is 5 MB.
*
* @author Arpan
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,8 @@ protected Optional<URI> determineRequestUri(ServerWebExchange exchange, Object c
}

/**
* A filter that sets the maximum permissible size of a Content-Length header value in the Request.
* A filter that sets the maximum permissible size of a Content-Length header value in
* the Request.
* @param size the maximum size of a request
* @return a {@link GatewayFilterSpec} that can be used to apply additional filters
*/
Expand All @@ -826,7 +827,8 @@ public GatewayFilterSpec setRequestSize(Long size) {
}

/**
* A filter that sets the maximum permissible size of a Content-Length header value in the Request.
* A filter that sets the maximum permissible size of a Content-Length header value in
* the Request.
* @param size the maximum size of a request
* @return a {@link GatewayFilterSpec} that can be used to apply additional filters
*/
Expand Down

0 comments on commit 2f39ba7

Please sign in to comment.