Skip to content

Commit

Permalink
Merge pull request #675 from liushuyu/master
Browse files Browse the repository at this point in the history
fix(fetch): fix a regression introduced in `b5d052e4e51c7cbf8506a284615551fabc2f0cd9`
  • Loading branch information
epage committed Mar 23, 2022
2 parents 56cc907 + 2116769 commit bd49ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ fn get_cargo_toml_from_git_url(url: &str) -> CargoResult<String> {
{
use std::sync::Arc;

let tls_connector = Arc::new(native_tls::TlsConnector::new().map_err(|e| e.to_string())?);
let tls_connector = Arc::new(native_tls::TlsConnector::new()?);
agent = agent.tls_connector(tls_connector.clone());
}
if let Some(proxy) = env_proxy::for_url_str(url)
Expand Down

0 comments on commit bd49ee2

Please sign in to comment.