Skip to content

Commit 83b2816

Browse files
committed
Fixed compilation error.
1 parent ea056c7 commit 83b2816

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ where
131131
if url.scheme() == UrlScheme::HTTPS {
132132
#[cfg(feature = "esp-mbedtls")]
133133
if let Some(tls) = self.tls.as_mut() {
134-
let mut servername = host.as_bytes().to_vec();
134+
let mut servername = url.host().as_bytes().to_vec();
135135
servername.push(0);
136136
let mut session = esp_mbedtls::asynch::Session::new(
137137
conn,

0 commit comments

Comments
 (0)