Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
9 changes: 0 additions & 9 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down