fix websockets

This commit is contained in:
Toshit Chawda 2024-01-15 12:50:00 -08:00
parent 4081ea6cce
commit 2c54b54b4f
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
5 changed files with 30 additions and 11 deletions

View file

@ -170,7 +170,7 @@ impl EpoxyClient {
.await
.replace_err("Failed to create multiplexor channel")?;
if *url.scheme().replace_err("URL must have a scheme")? == uri::Scheme::HTTPS {
if utils::get_is_secure(url)? {
let cloned_uri = url_host.to_string().clone();
let connector = TlsConnector::from(self.rustls_config.clone());
let io = connector