mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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:
@@ -33,7 +33,6 @@ import org.mockserver.model.HttpRequest;
|
|||||||
import org.mockserver.model.HttpResponse;
|
import org.mockserver.model.HttpResponse;
|
||||||
import org.mockserver.model.MediaType;
|
import org.mockserver.model.MediaType;
|
||||||
|
|
||||||
import com.aayushatharva.brotli4j.encoder.BrotliOutputStream;
|
|
||||||
import com.codahale.metrics.MetricRegistry;
|
import com.codahale.metrics.MetricRegistry;
|
||||||
import com.commafeed.CommaFeedConfiguration;
|
import com.commafeed.CommaFeedConfiguration;
|
||||||
import com.commafeed.CommaFeedVersion;
|
import com.commafeed.CommaFeedVersion;
|
||||||
@@ -234,11 +233,6 @@ class HttpGetterTest {
|
|||||||
supportsCompression("gzip", GZIPOutputStream::new);
|
supportsCompression("gzip", GZIPOutputStream::new);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
void brotli() throws IOException, NotModifiedException {
|
|
||||||
supportsCompression("br", BrotliOutputStream::new);
|
|
||||||
}
|
|
||||||
|
|
||||||
void supportsCompression(String encoding, CompressionOutputStreamFunction compressionOutputStreamFunction)
|
void supportsCompression(String encoding, CompressionOutputStreamFunction compressionOutputStreamFunction)
|
||||||
throws IOException, NotModifiedException {
|
throws IOException, NotModifiedException {
|
||||||
String body = "my body";
|
String body = "my body";
|
||||||
|
|||||||
Reference in New Issue
Block a user