diff --git a/src/api/mod.rs b/src/api/mod.rs index d810137269..5219c6991f 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -239,9 +239,6 @@ impl Api { handle.ssl_verify_host(self.config.should_verify_ssl())?; handle.ssl_verify_peer(self.config.should_verify_ssl())?; - // This toggles gzipping, useful for uploading large files - handle.transfer_encoding(self.config.allow_transfer_encoding())?; - let env = self.config.get_pipeline_env(); let headers = self.config.get_headers(); diff --git a/src/config.rs b/src/config.rs index 4fca141587..fd844f1236 100644 --- a/src/config.rs +++ b/src/config.rs @@ -310,15 +310,6 @@ impl Config { } } - /// Indicates whether uploads may use gzip transfer encoding. - pub fn allow_transfer_encoding(&self) -> bool { - let val = self.ini.get_from(Some("http"), "transfer_encoding"); - match val { - None => true, - Some(val) => val == "true", - } - } - /// Controls the SSL revocation check on windows. This can be used as a /// workaround for misconfigured local SSL proxies. pub fn disable_ssl_revocation_check(&self) -> bool {