We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27ddf65 commit a0f4479Copy full SHA for a0f4479
codec-http/src/main/java/io/netty/handler/codec/http/HttpContentCompressor.java
@@ -325,16 +325,16 @@ protected String determineEncoding(String acceptEncoding) {
325
}
326
327
if (starQ > 0.0f) {
328
- if (brQ == -1.0f && Brotli.isAvailable()) {
+ if (brQ == -1.0f && this.brotliOptions != null) {
329
return "br";
330
331
- if (zstdQ == -1.0f && Zstd.isAvailable()) {
+ if (zstdQ == -1.0f && this.zstdOptions != null) {
332
return "zstd";
333
334
- if (gzipQ == -1.0f) {
+ if (gzipQ == -1.0f && this.gzipOptions != null) {
335
return "gzip";
336
337
- if (deflateQ == -1.0f) {
+ if (deflateQ == -1.0f && this.deflateOptions != null) {
338
return "deflate";
339
340
0 commit comments