1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-05 01:32:31 +00:00

fix non-ssl connector

This commit is contained in:
Nikolay Kim 2019-04-19 18:10:53 -07:00
parent 6decfdda1f
commit 9f421b81b8

View file

@ -319,8 +319,8 @@ mod connect_impl {
self.tcp_pool.poll_ready() self.tcp_pool.poll_ready()
} }
fn call(&mut self, req: Uri) -> Self::Future { fn call(&mut self, req: Connect) -> Self::Future {
match req.scheme_str() { match req.uri.scheme_str() {
Some("https") | Some("wss") => { Some("https") | Some("wss") => {
Either::B(err(ConnectError::SslIsNotSupported)) Either::B(err(ConnectError::SslIsNotSupported))
} }