Merge pull request #6976 from eclipse/jetty-10.0.x-4317-GzipHandler-SSE

Issue #4317 - exclude text/event-stream MIME type from GzipHandler
This commit is contained in:
Lachlan 2021-10-20 19:32:47 +11:00 committed by GitHub
commit 06a899f298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,9 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory
_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);
}