Skip to content

Commit de836c1

Browse files
authored
feat: remove gzip, brotli, zstd, deflate from reqwest (#1511)
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent ee708ec commit de836c1

File tree

3 files changed

+22
-97
lines changed

3 files changed

+22
-97
lines changed

Cargo.lock

Lines changed: 9 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ members = [
1313
]
1414

1515
[workspace.package]
16-
version = "1.1.4"
16+
version = "1.1.5"
1717
authors = ["The Dragonfly Developers"]
1818
homepage = "https://d7y.io/"
1919
repository = "https://github.com/dragonflyoss/client.git"
@@ -23,14 +23,14 @@ readme = "README.md"
2323
edition = "2021"
2424

2525
[workspace.dependencies]
26-
dragonfly-client = { path = "dragonfly-client", version = "1.1.4" }
27-
dragonfly-client-core = { path = "dragonfly-client-core", version = "1.1.4" }
28-
dragonfly-client-config = { path = "dragonfly-client-config", version = "1.1.4" }
29-
dragonfly-client-storage = { path = "dragonfly-client-storage", version = "1.1.4" }
30-
dragonfly-client-backend = { path = "dragonfly-client-backend", version = "1.1.4" }
31-
dragonfly-client-metric = { path = "dragonfly-client-metric", version = "1.1.4" }
32-
dragonfly-client-util = { path = "dragonfly-client-util", version = "1.1.4" }
33-
dragonfly-client-init = { path = "dragonfly-client-init", version = "1.1.4" }
26+
dragonfly-client = { path = "dragonfly-client", version = "1.1.5" }
27+
dragonfly-client-core = { path = "dragonfly-client-core", version = "1.1.5" }
28+
dragonfly-client-config = { path = "dragonfly-client-config", version = "1.1.5" }
29+
dragonfly-client-storage = { path = "dragonfly-client-storage", version = "1.1.5" }
30+
dragonfly-client-backend = { path = "dragonfly-client-backend", version = "1.1.5" }
31+
dragonfly-client-metric = { path = "dragonfly-client-metric", version = "1.1.5" }
32+
dragonfly-client-util = { path = "dragonfly-client-util", version = "1.1.5" }
33+
dragonfly-client-init = { path = "dragonfly-client-init", version = "1.1.5" }
3434
dragonfly-api = "=2.1.87"
3535
thiserror = "2.0"
3636
futures = "0.3.31"
@@ -39,10 +39,6 @@ reqwest = { version = "0.12.4", features = [
3939
"native-tls",
4040
"default-tls",
4141
"rustls-tls",
42-
"gzip",
43-
"brotli",
44-
"zstd",
45-
"deflate",
4642
"blocking",
4743
"hickory-dns",
4844
] }

dragonfly-client-backend/src/object_storage.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ impl ObjectStorage {
180180
pub fn new(scheme: Scheme) -> ClientResult<ObjectStorage> {
181181
// Initialize the reqwest client.
182182
let client = reqwest::Client::builder()
183-
.gzip(true)
184-
.brotli(true)
185-
.zstd(true)
186-
.deflate(true)
183+
.no_gzip()
184+
.no_brotli()
185+
.no_zstd()
186+
.no_deflate()
187187
.hickory_dns(true)
188188
.pool_max_idle_per_host(super::POOL_MAX_IDLE_PER_HOST)
189189
.tcp_keepalive(super::KEEP_ALIVE_INTERVAL)

0 commit comments

Comments
 (0)