Enable 'gzip' by default

This commit is contained in:
Martin Algesten
2021-12-19 21:37:09 +01:00
parent 4aa5480543
commit 738cb84aec
3 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ edition = "2018"
features = ["tls", "native-tls", "json", "charset", "cookies", "socks-proxy"]
[features]
default = ["tls"]
default = ["tls", "gzip"]
tls = ["webpki", "webpki-roots", "rustls"]
native-certs = ["rustls-native-certs"]
json = ["serde", "serde_json"]

View File

@@ -113,8 +113,8 @@ You can control them when including ureq as a dependency.
TLS implementation, `native-tls` is never picked up as a default or used by the crate level
convenience calls (`ureq::get` etc) it must be configured on the agent. The `native-certs` feature
does nothing for `native-tls`.
* `gzip` enables automatically requesting gzip-compressed responses and decompressing them.
* `brotli` enables automatically requesting Brotli-compressed responses and decompressing them.
* `gzip` enables requests of gzip-compressed responses and decompresses them. This is enabled by default.
* `brotli` enables requests brotli-compressed responses and decompresses them.
## Plain requests

View File

@@ -133,8 +133,8 @@
//! TLS implementation, `native-tls` is never picked up as a default or used by the crate level
//! convenience calls (`ureq::get` etc) it must be configured on the agent. The `native-certs` feature
//! does nothing for `native-tls`.
//! * `gzip` enables automatically requesting gzip-compressed responses and decompressing them.
//! * `brotli` enables automatically requesting Brotli-compressed responses and decompressing them.
//! * `gzip` enables requests of gzip-compressed responses and decompresses them. This is enabled by default.
//! * `brotli` enables requests brotli-compressed responses and decompresses them.
//!
//! # Plain requests
//!