Fix non-tls case.

This commit is contained in:
Jacob Hoffman-Andrews committed 2020-11-28 23:57:02 -08:00
1 parent a286a7a22d
commit 6b6a59f215
1 file changed
+1
+1
View File
@@ -135,6 +135,7 @@ impl Stream {
} }
} }
#[cfg(tls)]
fn from_tls_stream(t: StreamOwned<ClientSession, TcpStream>) -> Stream { fn from_tls_stream(t: StreamOwned<ClientSession, TcpStream>) -> Stream {
Stream { Stream {
inner: BufReader::new(Inner::Https(t)), inner: BufReader::new(Inner::Https(t)),