Skip to content

Commit 59fdce1

Browse files
committed
Fix bug in EncoderHttpMessageWriter.isStreamingMediaType()
1 parent c717d24 commit 59fdce1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
* @author Sebastien Deleuze
5151
* @author Rossen Stoyanchev
5252
* @author Brian Clozel
53+
* @author Sam Brannen
5354
* @since 5.0
5455
* @param <T> the type of objects in the input stream
5556
*/
@@ -171,7 +172,7 @@ private boolean isStreamingMediaType(@Nullable MediaType contentType) {
171172
}
172173
for (MediaType mediaType : ((HttpMessageEncoder<?>) this.encoder).getStreamingMediaTypes()) {
173174
if (contentType.isCompatibleWith(mediaType) &&
174-
contentType.getParameters().entrySet().containsAll(mediaType.getParameters().keySet())) {
175+
contentType.getParameters().keySet().containsAll(mediaType.getParameters().keySet())) {
175176
return true;
176177
}
177178
}

0 commit comments

Comments
 (0)