diff --git a/src/server/rest.rs b/src/server/rest.rs index 07460125..7922897c 100644 --- a/src/server/rest.rs +++ b/src/server/rest.rs @@ -443,7 +443,7 @@ pub async fn handle_api_request { - let mut enc = DeflateEncoder::with_quality(data, Level::Fastest); + let mut enc = DeflateEncoder::with_quality(data, Level::Default); enc.compress_vec(&mut file, CHUNK_SIZE_LIMIT as usize).await?; let mut response = Response::new(enc.into_inner().into()); response.headers_mut().insert( @@ -607,7 +607,7 @@ async fn chuncked_static_file_download( ); Body::wrap_stream(DeflateEncoder::with_quality( AsyncReaderStream::new(file), - Level::Fastest, + Level::Default, )) } None => Body::wrap_stream(AsyncReaderStream::new(file)),