Skip to content

Commit 768fbf4

Browse files
committed
fix test
1 parent 51015f5 commit 768fbf4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ headers = "0.3"
3636

3737
[dev-dependencies]
3838
tokio = { version = "1.0", features = ["full"] }
39-
hyper = { version = "0.14", features = ["client", "http1"] }
39+
hyper = { version = "0.14", features = ["client", "http1", "tcp"] }
4040

4141
[features]
4242
openssl-tls = ["openssl", "tokio-openssl"]

src/stream.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ impl<R: AsyncRead + AsyncWrite + Unpin> AsyncWrite for ProxyStream<R> {
7979
match self {
8080
ProxyStream::NoProxy(s) => s.is_write_vectored(),
8181
ProxyStream::Regular(s) => s.is_write_vectored(),
82+
#[cfg(any(feature = "tls", feature = "rustls-base", feature = "openssl-tls"))]
8283
ProxyStream::Secured(s) => s.is_write_vectored(),
8384
}
8485
}

0 commit comments

Comments
 (0)