From fa03f75d219eb029dff5bf332bea960e6727abee Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 16 Sep 2020 14:40:12 +0200 Subject: [PATCH] Upgrade to Undertow 2.2.0.Final Closes gh-23367 --- spring-boot-project/spring-boot-dependencies/build.gradle | 2 +- .../web/embedded/undertow/CompressionHttpHandlerFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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