Temporarily disable HTTP response compression

Disable response compression until `Accept-Encoding` headers are properly evaluated, and the compression can be chosen based on the HTTP request. This relies on https://github.com/seanmonstar/warp/pull/513 being implemented.
This commit is contained in:
Tobie Morgan Hitchcock 2022-07-29 10:33:49 +01:00
parent b68a1814ea
commit 2646ea119e

View file

@ -48,8 +48,6 @@ pub async fn init() -> Result<(), Error> {
.recover(fail::recover) .recover(fail::recover)
// End routes setup // End routes setup
; ;
// Enable response compression
let net = net.with(warp::compression::gzip());
// Specify a generic version header // Specify a generic version header
let net = net.with(head::version()); let net = net.with(head::version());
// Specify a generic server header // Specify a generic server header