Replace rustls-native-certs with rustls-platform-verifier (#24656)

closes https://github.com/zed-industries/zed/issues/19620.

I am not 100% sure on how to test this though. @elithrar: would you mind
giving this branch a shot and seeing if it works for you? I kicked off
bundling for this pull request and you should be able to download a DMG
from the CI artifacts as soon as it's done building.

Release Notes:

- Fixed a bug that caused OS-level CA certificate bundles to not be
respected.

---------

Co-authored-by: Bennet <bennet@zed.dev>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
Antonio Scandurra 2025-02-12 16:32:17 +01:00 committed by GitHub
parent 1ce6e8d0e3
commit 2b7d3726b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 69 additions and 26 deletions

View file

@ -51,7 +51,10 @@ impl ReqwestClient {
}) {
client = client.proxy(proxy);
}
let client = client.build()?;
let client = client
.use_preconfigured_tls(http_client::tls_config())
.build()?;
let mut client: ReqwestClient = client.into();
client.proxy = proxy;
Ok(client)