1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-22 13:45:13 +02:00

ClientRequest::send_body takes impl MessageBody (#2546)

This commit is contained in:
Rob Ede
2021-12-25 02:33:37 +00:00
committed by GitHub
parent 1296e07c48
commit d2590fd46c
18 changed files with 853 additions and 687 deletions

View File

@@ -190,9 +190,7 @@ where
let body_new = if is_redirect {
// try to reuse body
match body {
Some(ref bytes) => AnyBody::Bytes {
body: bytes.clone(),
},
Some(ref bytes) => AnyBody::from(bytes.clone()),
// TODO: should this be AnyBody::Empty or AnyBody::None.
_ => AnyBody::empty(),
}