update using ToSocketAddr

This commit is contained in:
Sean McArthur
2014-11-06 17:50:08 -08:00
parent a1b1968797
commit 3d7820d17e
5 changed files with 16 additions and 16 deletions

View File

@@ -56,7 +56,7 @@ impl Request<Fresh> {
};
debug!("port={}", port);
let stream: S = try_io!(NetworkConnector::connect(host.as_slice(), port, url.scheme.as_slice()));
let stream: S = try_io!(NetworkConnector::connect((host[], port), url.scheme.as_slice()));
let stream = ThroughWriter(BufferedWriter::new(box stream as Box<NetworkStream + Send>));
let mut headers = Headers::new();