Various fixes in awc crate

This commit is contained in:
Igor Aleksanov 2021-06-22 19:54:02 +03:00
parent 815972dd28
commit 7d61da0302
2 changed files with 4 additions and 2 deletions

View File

@ -485,7 +485,9 @@ impl ClientRequest {
let mut encoding = vec![];
#[cfg(feature = "compress-brotli")]
encoding.push("br");
{
encoding.push("br");
}
#[cfg(feature = "compress-gzip")]
{

View File

@ -517,7 +517,7 @@ mod tests {
"test-origin"
);
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.head.headers.get(header::CONTENT_TYPE).unwrap(),