Skip to content

Commit e908f57

Browse files
authored
fix(http3): correct compression defaults (#2890)
1 parent 509c904 commit e908f57

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/async_impl/client.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,13 @@ impl ClientBuilder {
10591059
feature = "zstd",
10601060
feature = "deflate"
10611061
))]
1062-
let svc = Decompression::new(svc);
1062+
let svc = Decompression::new(svc)
1063+
// set everything to NO, in case tower-http has it enabled but
1064+
// reqwest does not. then set to config value if cfg allows.
1065+
.no_gzip()
1066+
.no_deflate()
1067+
.no_br()
1068+
.no_zstd();
10631069
#[cfg(feature = "gzip")]
10641070
let svc = svc.gzip(config.accepts.gzip);
10651071
#[cfg(feature = "brotli")]

0 commit comments

Comments
 (0)