From 59fdce111675ba22960333ac33e9eff372956807 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 9 May 2019 13:24:27 +0200 Subject: [PATCH] Fix bug in EncoderHttpMessageWriter.isStreamingMediaType() --- .../springframework/http/codec/EncoderHttpMessageWriter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java b/spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java index 836fd3164b..9395cd29ff 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java +++ b/spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java @@ -50,6 +50,7 @@ import org.springframework.util.Assert; * @author Sebastien Deleuze * @author Rossen Stoyanchev * @author Brian Clozel + * @author Sam Brannen * @since 5.0 * @param the type of objects in the input stream */ @@ -171,7 +172,7 @@ public class EncoderHttpMessageWriter implements HttpMessageWriter { } for (MediaType mediaType : ((HttpMessageEncoder) this.encoder).getStreamingMediaTypes()) { if (contentType.isCompatibleWith(mediaType) && - contentType.getParameters().entrySet().containsAll(mediaType.getParameters().keySet())) { + contentType.getParameters().keySet().containsAll(mediaType.getParameters().keySet())) { return true; } }