1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01:00

fix non ssl connector

This commit is contained in:
Nikolay Kim 2019-03-14 13:08:05 -07:00
parent 76bb30dc3a
commit 15ba40d3ab

View File

@ -173,6 +173,7 @@ where
let connector = TimeoutService::new( let connector = TimeoutService::new(
self.timeout, self.timeout,
apply_fn(self.connector, |msg: Uri, srv| srv.call(msg.into())) apply_fn(self.connector, |msg: Uri, srv| srv.call(msg.into()))
.map_err(ConnectError::from)
.map(|stream| (stream.into_parts().0, Protocol::Http1)), .map(|stream| (stream.into_parts().0, Protocol::Http1)),
) )
.map_err(|e| match e { .map_err(|e| match e {