1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-07-01 12:15:08 +02:00

use BodyLength for request and response body

This commit is contained in:
Nikolay Kim
2018-11-16 21:30:37 -08:00
parent aa20e2670d
commit 3a4b16a6d5
6 changed files with 64 additions and 74 deletions

View File

@ -13,7 +13,7 @@ use rand;
use sha1::Sha1;
use tokio_io::{AsyncRead, AsyncWrite};
use body::BodyType;
use body::BodyLength;
use client::ClientResponse;
use h1;
use ws::Codec;
@ -141,7 +141,7 @@ where
// h1 protocol
let framed = Framed::new(io, h1::ClientCodec::default());
framed
.send((request.into_parts().0, BodyType::None).into())
.send((request.into_parts().0, BodyLength::None).into())
.map_err(ClientError::from)
.and_then(|framed| {
framed