Skip to content

Commit

Permalink
enable reqwest's deflate feature
Browse files Browse the repository at this point in the history
also updates accept-encoding to match HTTPie's
  • Loading branch information
ducaale committed Jun 21, 2021
1 parent 4256a7f commit 2afc6d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ termcolor = "1.1.2"
jsonxf = "1.1.0"

[dependencies.reqwest]
version = "0.11.1"
version = "0.11.4"
default-features = false
features = ["rustls-tls", "json", "gzip", "brotli", "multipart", "blocking", "socks"]
features = ["rustls-tls", "json", "gzip", "brotli", "deflate", "multipart", "blocking", "socks"]

[dependencies.syntect]
version = "4.4"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fn main() -> Result<i32> {
let mut request = {
let mut request_builder = client
.request(method, url.clone())
.header(ACCEPT_ENCODING, HeaderValue::from_static("gzip, br"))
.header(ACCEPT_ENCODING, HeaderValue::from_static("gzip, deflate"))
.header(CONNECTION, HeaderValue::from_static("keep-alive"))
.header(USER_AGENT, get_user_agent());

Expand Down

0 comments on commit 2afc6d0

Please sign in to comment.