Skip to content

Commit

Permalink
Merge pull request #6976 from eclipse/jetty-10.0.x-4317-GzipHandler-SSE
Browse files Browse the repository at this point in the history
Issue #4317 - exclude text/event-stream MIME type from GzipHandler
  • Loading branch information
lachlan-roberts committed Oct 20, 2021
2 parents b5cd311 + 32187fb commit 06a899f
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -195,6 +195,9 @@ else if (type.startsWith("image/") ||
_mimeTypes.exclude("application/x-xz");
_mimeTypes.exclude("application/x-rar-compressed");

// It is possible to use SSE with GzipHandler but you will need to set _synFlush to true which will impact performance.
_mimeTypes.exclude("text/event-stream");

if (LOG.isDebugEnabled())
LOG.debug("{} mime types {}", this, _mimeTypes);
}
Expand Down

0 comments on commit 06a899f

Please sign in to comment.