Skip to content

Commit

Permalink
Merge branch '2.1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed May 1, 2019
2 parents eb028fa + 19413c0 commit ed538a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ public HttpServer apply(HttpServer server) {
return server;
}

private CompressionPredicate getMimeTypesPredicate(String[] mimeTypeIds) {
if (ObjectUtils.isEmpty(mimeTypeIds)) {
private CompressionPredicate getMimeTypesPredicate(String[] mimeTypeValues) {
if (ObjectUtils.isEmpty(mimeTypeValues)) {
return ALWAYS_COMPRESS;
}
List<MimeType> mimeTypes = Arrays.stream(mimeTypeIds)
List<MimeType> mimeTypes = Arrays.stream(mimeTypeValues)
.map(MimeTypeUtils::parseMimeType).collect(Collectors.toList());
return (request, response) -> {
String contentType = response.responseHeaders()
Expand Down

0 comments on commit ed538a2

Please sign in to comment.