mirror of
https://github.com/Athou/commafeed.git
synced 2026-10-30 00:49:14 +00:00
Revert "add support for zstd and brotli compression" because they use native libraries that need to be extracted in a temp folder which we want to avoid
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.commafeed.backend;
|
||||
|
||||
import com.aayushatharva.brotli4j.encoder.BrotliOutputStream;
|
||||
import com.codahale.metrics.MetricRegistry;
|
||||
import com.commafeed.CommaFeedConfiguration;
|
||||
import com.commafeed.CommaFeedVersion;
|
||||
@@ -8,7 +7,6 @@ import com.commafeed.backend.HttpGetter.HttpResponseException;
|
||||
import com.commafeed.backend.HttpGetter.HttpResult;
|
||||
import com.commafeed.backend.HttpGetter.NotModifiedException;
|
||||
import com.commafeed.backend.HttpGetter.TooManyRequestsException;
|
||||
import com.github.luben.zstd.ZstdOutputStream;
|
||||
import com.google.common.net.HttpHeaders;
|
||||
|
||||
import io.quarkus.runtime.configuration.MemorySize;
|
||||
@@ -422,7 +420,7 @@ class HttpGetterTest {
|
||||
@Nested
|
||||
class Compression {
|
||||
|
||||
private static final String ACCEPT_ENCODING = "deflate, gzip, zstd, br";
|
||||
private static final String ACCEPT_ENCODING = "deflate, gzip";
|
||||
|
||||
@Test
|
||||
void gzip() throws Exception {
|
||||
@@ -434,16 +432,6 @@ class HttpGetterTest {
|
||||
supportsCompression("deflate", DeflaterOutputStream::new);
|
||||
}
|
||||
|
||||
@Test
|
||||
void zstd() throws Exception {
|
||||
supportsCompression("zstd", ZstdOutputStream::new);
|
||||
}
|
||||
|
||||
@Test
|
||||
void br() throws Exception {
|
||||
supportsCompression("br", BrotliOutputStream::new);
|
||||
}
|
||||
|
||||
void supportsCompression(String encoding, CompressionFunction compressionFunction)
|
||||
throws Exception {
|
||||
String body = "my body";
|
||||
|
||||
Reference in New Issue
Block a user