diff --git a/spring-boot-project/spring-boot-dependencies/build.gradle b/spring-boot-project/spring-boot-dependencies/build.gradle index 7c081a20db..13d3a2ac61 100644 --- a/spring-boot-project/spring-boot-dependencies/build.gradle +++ b/spring-boot-project/spring-boot-dependencies/build.gradle @@ -1722,7 +1722,7 @@ bom { ] } } - library("Undertow", "2.1.3.Final") { + library("Undertow", "2.2.0.Final") { group("io.undertow") { modules = [ "undertow-core", diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/CompressionHttpHandlerFactory.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/CompressionHttpHandlerFactory.java index 610c9d8dfb..d2311427e9 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/CompressionHttpHandlerFactory.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/CompressionHttpHandlerFactory.java @@ -118,7 +118,7 @@ class CompressionHttpHandlerFactory implements HttpHandlerFactory { private final Predicate maxContentSize; MaxSizePredicate(int size) { - this.maxContentSize = Predicates.maxContentSize(size); + this.maxContentSize = Predicates.requestLargerThan(size); } @Override