mirror of https://github.com/fafhrd91/actix-web
Use Accept-Encoding=idenity if no compression feature is enabled (#1731)
This commit is contained in:
parent
d765e9099d
commit
7811292678
|
@ -23,8 +23,17 @@ use crate::ClientConfig;
|
||||||
|
|
||||||
#[cfg(any(feature = "flate2-zlib", feature = "flate2-rust"))]
|
#[cfg(any(feature = "flate2-zlib", feature = "flate2-rust"))]
|
||||||
const HTTPS_ENCODING: &str = "br, gzip, deflate";
|
const HTTPS_ENCODING: &str = "br, gzip, deflate";
|
||||||
#[cfg(not(any(feature = "flate2-zlib", feature = "flate2-rust")))]
|
#[cfg(all(
|
||||||
|
not(any(feature = "flate2-zlib", feature = "flate2-rust")),
|
||||||
|
feature = "compress"
|
||||||
|
))]
|
||||||
const HTTPS_ENCODING: &str = "br";
|
const HTTPS_ENCODING: &str = "br";
|
||||||
|
#[cfg(not(any(
|
||||||
|
feature = "flate2-zlib",
|
||||||
|
feature = "flate2-rust",
|
||||||
|
feature = "compress"
|
||||||
|
)))]
|
||||||
|
const HTTPS_ENCODING: &str = "identity";
|
||||||
|
|
||||||
/// An HTTP Client request builder
|
/// An HTTP Client request builder
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue