We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 509c904 commit e908f57Copy full SHA for e908f57
1 file changed
src/async_impl/client.rs
@@ -1059,7 +1059,13 @@ impl ClientBuilder {
1059
feature = "zstd",
1060
feature = "deflate"
1061
))]
1062
- let svc = Decompression::new(svc);
+ 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();
1069
#[cfg(feature = "gzip")]
1070
let svc = svc.gzip(config.accepts.gzip);
1071
#[cfg(feature = "brotli")]
0 commit comments