mirror of
https://github.com/actix/actix-extras.git
synced 2025-07-01 20:25:09 +02:00
ClientBody is not needed
This commit is contained in:
@ -16,14 +16,14 @@ use sha1::Sha1;
|
||||
|
||||
use actix::{Addr, SystemService};
|
||||
|
||||
use body::Binary;
|
||||
use body::{Binary, Body};
|
||||
use error::{Error, UrlParseError};
|
||||
use header::IntoHeaderValue;
|
||||
use httpmessage::HttpMessage;
|
||||
use payload::PayloadHelper;
|
||||
|
||||
use client::{
|
||||
ClientBody, ClientConnector, ClientRequest, ClientRequestBuilder, ClientResponse,
|
||||
ClientConnector, ClientRequest, ClientRequestBuilder, ClientResponse,
|
||||
HttpResponseParserError, SendRequest, SendRequestError,
|
||||
};
|
||||
|
||||
@ -297,7 +297,7 @@ impl ClientHandshake {
|
||||
);
|
||||
|
||||
let (tx, rx) = unbounded();
|
||||
request.set_body(ClientBody::Streaming(Box::new(rx.map_err(|_| {
|
||||
request.set_body(Body::Streaming(Box::new(rx.map_err(|_| {
|
||||
io::Error::new(io::ErrorKind::Other, "disconnected").into()
|
||||
}))));
|
||||
|
||||
|
Reference in New Issue
Block a user