We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2286ad8 commit 2f7cefbCopy full SHA for 2f7cefb
avaje-jex/src/main/java/io/avaje/jex/compression/CompressedOutputStream.java
@@ -32,17 +32,6 @@ public CompressedOutputStream(
32
33
private void decideCompression(int length) throws IOException {
34
if (!compressionDecided) {
35
- var encoding = ctx.responseHeader(Constants.CONTENT_ENCODING);
36
- if (encoding != null) {
37
- this.compressedStream =
38
- findMatchingCompressor(encoding)
39
- .orElseThrow(
40
- () ->
41
- new IllegalStateException(
42
- "No compressor found for Content-Encoding:" + encoding))
43
- .compress(originStream);
44
- }
45
-
46
boolean compressionAllowed =
47
compressedStream == null && compression.allowsForCompression(ctx.contentType());
48
0 commit comments