Skip to content

Commit

Permalink
Tweak cert compress
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 committed Nov 27, 2024
1 parent fc0aa06 commit 3e3409c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pin-project-lite = "0.2"
rand = { version = "0.8", default-features = false, features = ["alloc", "getrandom", "small_rng"] }
regex-lite = "0.1.6"
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "stream", "socks"] }
rustls = { version = "0.23.18", default-features = false, features = ["brotli", "ring", "std", "tls12"] }
rustls = { version = "0.23.18", default-features = false, features = ["brotli", "ring", "std", "tls12", "zlib"] }
scopeguard = "1.2"
sha1 = { version = "0.10.6", default-features = false, features = ["oid"] }
tempfile = "3.10"
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn create_http_client(timeout: Duration, proxy: Option<Proxy>) -> reqwest::C
.unwrap()
.with_root_certificates(root_store)
.with_no_client_auth();
tls.cert_compression_cache = CompressionCache::Disabled.into();
tls.cert_compression_cache = CompressionCache::new(2).into(); // 1 cert * 2 compression algorithms

let mut builder = reqwest::ClientBuilder::new()
.user_agent(concatcp!("Hentai@Home ", CLIENT_VERSION))
Expand Down

0 comments on commit 3e3409c

Please sign in to comment.