mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Untry
This commit is contained in:
parent
7af5a7fd54
commit
316cd35767
34 changed files with 261 additions and 264 deletions
|
@ -36,7 +36,7 @@ impl NetworkConnector for HttpsConnector {
|
|||
|
||||
// Perform host replacement when making the actual TCP connection.
|
||||
let addr = &(&*replace_host(host), port);
|
||||
let stream = HttpStream(try!(TcpStream::connect(addr)));
|
||||
let stream = HttpStream(TcpStream::connect(addr)?);
|
||||
|
||||
if scheme == "http" {
|
||||
Ok(HttpsStream::Http(stream))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue