Skip to content

Commit

Permalink
Fix bug in EncoderHttpMessageWriter.isStreamingMediaType()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed May 9, 2019
1 parent c717d24 commit 59fdce1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
* @author Sebastien Deleuze
* @author Rossen Stoyanchev
* @author Brian Clozel
* @author Sam Brannen
* @since 5.0
* @param <T> the type of objects in the input stream
*/
Expand Down Expand Up @@ -171,7 +172,7 @@ private boolean isStreamingMediaType(@Nullable MediaType contentType) {
}
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;
}
}
Expand Down

0 comments on commit 59fdce1

Please sign in to comment.