fix(ssl): set_hostname on ssl connections

This commit is contained in:
Sean McArthur
2014-12-11 20:27:37 -08:00
parent 7f931845cc
commit 3ac277b1f0
4 changed files with 15 additions and 9 deletions

View File

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