From 7bcc258b096c707848d7502e24cb1249c7887083 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 21 Mar 2018 08:56:21 -0700 Subject: [PATCH] Use fast compression setting --- src/server/encoding.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/encoding.rs b/src/server/encoding.rs index 5374b624..fc624d55 100644 --- a/src/server/encoding.rs +++ b/src/server/encoding.rs @@ -420,7 +420,7 @@ impl ContentEncoder { ContentEncoding::Deflate => ContentEncoder::Deflate( DeflateEncoder::new(transfer, Compression::fast())), ContentEncoding::Gzip => ContentEncoder::Gzip( - GzEncoder::new(transfer, Compression::fasr())), + GzEncoder::new(transfer, Compression::fast())), #[cfg(feature="brotli")] ContentEncoding::Br => ContentEncoder::Br( BrotliEncoder::new(transfer, 3)), @@ -471,12 +471,12 @@ impl ContentEncoder { match encoding { ContentEncoding::Deflate => ContentEncoder::Deflate( - DeflateEncoder::new(transfer, Compression::default())), + DeflateEncoder::new(transfer, Compression::fast())), ContentEncoding::Gzip => ContentEncoder::Gzip( - GzEncoder::new(transfer, Compression::default())), + GzEncoder::new(transfer, Compression::fast())), #[cfg(feature="brotli")] ContentEncoding::Br => ContentEncoder::Br( - BrotliEncoder::new(transfer, 5)), + BrotliEncoder::new(transfer, 3)), ContentEncoding::Identity | ContentEncoding::Auto => ContentEncoder::Identity(transfer), }