Skip to content

Commit

Permalink
fix: stop using preconfigured tls (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Nowak-Liebiediew authored Aug 4, 2023
1 parent d91df41 commit 6df55b9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions extensions-utils/src/project/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,8 @@ impl Loader {

fn client(&mut self) -> Result<&Client, ProjectError> {
if self.client.is_none() {
let tls_config = rustls::ClientConfig::builder()
.with_safe_defaults()
.with_webpki_roots()
.with_no_client_auth();

// Advertise support for HTTP/2
//tls_config.alpn_protocols = vec![b"h2".to_vec(), b"http/1.1".to_vec()];

let client = reqwest::Client::builder()
.use_preconfigured_tls(tls_config)
.use_rustls_tls()
.build()
.map_err(ProjectError::CouldNotCreateHttpClient)?;
self.client = Some(client);
Expand Down

0 comments on commit 6df55b9

Please sign in to comment.