1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-19 16:11:07 +00:00

fix h2 client send body

This commit is contained in:
Nikolay Kim 2019-11-19 19:38:42 +06:00
parent 1ffa7d18d3
commit d081e57316
2 changed files with 2 additions and 1 deletions

View file

@ -159,6 +159,8 @@ async fn send_body<B: MessageBody>(
} else {
if !b.is_empty() {
send.reserve_capacity(b.len());
} else {
buf = None;
}
continue;
}

View file

@ -204,7 +204,6 @@ mod tests {
assert_eq!(req.uri().query(), Some("q=1"));
let s = format!("{:?}", req);
println!("T: {:?}", s);
assert!(s.contains("Request HTTP/1.1 GET:/index.html"));
}
}