there are only native implementations of brotli encoders, don't use them because it doesn't work on all platforms

This commit is contained in:
Athou
2024-08-28 20:53:46 +02:00
parent b95d417f5e
commit 9cbb60313c

View File

@@ -33,7 +33,6 @@ import org.mockserver.model.HttpRequest;
import org.mockserver.model.HttpResponse;
import org.mockserver.model.MediaType;
import com.aayushatharva.brotli4j.encoder.BrotliOutputStream;
import com.codahale.metrics.MetricRegistry;
import com.commafeed.CommaFeedConfiguration;
import com.commafeed.CommaFeedVersion;
@@ -234,11 +233,6 @@ class HttpGetterTest {
supportsCompression("gzip", GZIPOutputStream::new);
}
@Test
void brotli() throws IOException, NotModifiedException {
supportsCompression("br", BrotliOutputStream::new);
}
void supportsCompression(String encoding, CompressionOutputStreamFunction compressionOutputStreamFunction)
throws IOException, NotModifiedException {
String body = "my body";