Skip to content

Commit dddbde4

Browse files
committed
Fix a typo in set_tls_config h1-client feature check
1 parent ebeb770 commit dddbde4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ h1-client = [
2626
"http-client/native-tls",
2727
"once_cell",
2828
"default-client",
29+
"async-native-tls",
2930
]
3031
h1-client-no-tls = [
3132
"http-client/h1_client",
@@ -72,6 +73,7 @@ cfg-if = "1.0.0"
7273
getrandom = "0.2.0"
7374
encoding_rs = { version = "0.8.20", optional = true }
7475
rustls_crate = { version = "0.18", optional = true, package = "rustls" }
76+
async-native-tls = { version = "0.3.3", optional = true }
7577

7678
web-sys = { optional = true, version = "0.3.25", features = ["TextDecoder"] }
7779

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl Config {
203203
}
204204
/// Set TLS Configuration (Native TLS)
205205
#[cfg_attr(feature = "docs", doc(cfg(feature = "h1-client")))]
206-
#[cfg(feature = "h1_client")]
206+
#[cfg(feature = "h1-client")]
207207
pub fn set_tls_config(
208208
mut self,
209209
tls_config: Option<std::sync::Arc<async_native_tls::TlsConnector>>,

0 commit comments

Comments
 (0)