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:
parent
76bb30dc3a
commit
15ba40d3ab
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user