Browse Source

Bumping versions

main
buildmaster 11 months ago
parent
commit
2f39ba705d
  1. 3
      spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/filter/RetryFilterFunctions.java
  2. 6
      spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestSizeGatewayFilterFactory.java
  3. 6
      spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/route/builder/GatewayFilterSpec.java

3
spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/filter/RetryFilterFunctions.java

@ -70,8 +70,7 @@ public abstract class RetryFilterFunctions {
} }
private static boolean isRetryableStatusCode(HttpStatusCode httpStatus, RetryConfig config) { private static boolean isRetryableStatusCode(HttpStatusCode httpStatus, RetryConfig config) {
return config.getSeries().stream() return config.getSeries().stream().anyMatch(series -> HttpStatus.Series.resolve(httpStatus.value()) == series);
.anyMatch(series -> HttpStatus.Series.resolve(httpStatus.value()) == series);
} }
public static class HttpStatusRetryPolicy extends NeverRetryPolicy { public static class HttpStatusRetryPolicy extends NeverRetryPolicy {

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

@ -30,9 +30,9 @@ import org.springframework.web.server.ServerWebExchange;
import static org.springframework.cloud.gateway.support.GatewayToStringStyler.filterToStringCreator; 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. * This filter blocks the request if the size in Content-Length header value is more than
* Has no effect if Content-Length header is missing. * the permissible size. Has no effect if Content-Length header is missing. The default
* The default request size is 5 MB. * request size is 5 MB.
* *
* @author Arpan * @author Arpan
*/ */

6
spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/route/builder/GatewayFilterSpec.java

@ -817,7 +817,8 @@ public class GatewayFilterSpec extends UriSpec {
} }
/** /**
* 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 * @param size the maximum size of a request
* @return a {@link GatewayFilterSpec} that can be used to apply additional filters * @return a {@link GatewayFilterSpec} that can be used to apply additional filters
*/ */
@ -826,7 +827,8 @@ public class GatewayFilterSpec extends UriSpec {
} }
/** /**
* 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 * @param size the maximum size of a request
* @return a {@link GatewayFilterSpec} that can be used to apply additional filters * @return a {@link GatewayFilterSpec} that can be used to apply additional filters
*/ */

Loading…
Cancel
Save