mirror of https://github.com/fafhrd91/actix-web
Various fixes in awc crate
This commit is contained in:
parent
815972dd28
commit
7d61da0302
|
@ -485,7 +485,9 @@ impl ClientRequest {
|
||||||
let mut encoding = vec![];
|
let mut encoding = vec![];
|
||||||
|
|
||||||
#[cfg(feature = "compress-brotli")]
|
#[cfg(feature = "compress-brotli")]
|
||||||
encoding.push("br");
|
{
|
||||||
|
encoding.push("br");
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "compress-gzip")]
|
#[cfg(feature = "compress-gzip")]
|
||||||
{
|
{
|
||||||
|
|
|
@ -517,7 +517,7 @@ mod tests {
|
||||||
"test-origin"
|
"test-origin"
|
||||||
);
|
);
|
||||||
assert_eq!(req.max_size, 100);
|
assert_eq!(req.max_size, 100);
|
||||||
assert_eq!(req.server_mode, true);
|
assert!(req.server_mode);
|
||||||
assert_eq!(req.protocols, Some("v1,v2".to_string()));
|
assert_eq!(req.protocols, Some("v1,v2".to_string()));
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
req.head.headers.get(header::CONTENT_TYPE).unwrap(),
|
req.head.headers.get(header::CONTENT_TYPE).unwrap(),
|
||||||
|
|
Loading…
Reference in New Issue