We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
HttpsUriWithoutTlsSupport
1 parent 2e19b66 commit 1dd5ad2Copy full SHA for 1dd5ad2
tonic/src/transport/service/connector.rs
@@ -79,17 +79,11 @@ where
79
#[cfg(feature = "tls-roots-common")]
80
let tls = self.tls_or_default(uri.scheme_str(), uri.host());
81
82
+ #[cfg(feature = "tls")]
83
let is_https = uri.scheme_str() == Some("https");
84
let connect = self.inner.make_connection(uri);
85
86
Box::pin(async move {
- #[cfg(not(feature = "tls"))]
87
- {
88
- if is_https {
89
- return Err(HttpsUriWithoutTlsSupport(()).into());
90
- }
91
92
-
93
let io = connect.await?;
94
95
#[cfg(feature = "tls")]
0 commit comments