From 96709d5a75a47dd2102f45bd8fd5cb02bfed5a8e Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 14 May 2018 16:07:09 +0200 Subject: [PATCH] Add comment explaining why Content-Length isn't checked --- src/transport.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/transport.rs b/src/transport.rs index 3a9b75e0..a41434ae 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -110,6 +110,9 @@ pub mod http { } } + // We ignore the Content-Length header because it doesn't matter for the parser and reqwest + // will remove it when the response is gzip compressed. + Ok(()) }