diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/CompressionCustomizer.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/CompressionCustomizer.java index 807b3861a5..2563be716e 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/CompressionCustomizer.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/CompressionCustomizer.java @@ -65,11 +65,11 @@ final class CompressionCustomizer implements NettyServerCustomizer { return server; } - private CompressionPredicate getMimeTypesPredicate(String[] mimeTypeIds) { - if (ObjectUtils.isEmpty(mimeTypeIds)) { + private CompressionPredicate getMimeTypesPredicate(String[] mimeTypeValues) { + if (ObjectUtils.isEmpty(mimeTypeValues)) { return ALWAYS_COMPRESS; } - List mimeTypes = Arrays.stream(mimeTypeIds) + List mimeTypes = Arrays.stream(mimeTypeValues) .map(MimeTypeUtils::parseMimeType).collect(Collectors.toList()); return (request, response) -> { String contentType = response.responseHeaders()