Skip to content

Commit

Permalink
fix: ureq tls
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Feb 14, 2025
1 parent cae6ea8 commit cfc5a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ ndarray = { version = "0.16", default-features = false, optional = true }
ort-sys = { version = "=2.0.0-rc.9", path = "ort-sys", default-features = false }
libloading = { version = "0.8", optional = true }

ureq = { version = "3", optional = true, default-features = false, features = [ "native-tls" ] }
ureq = { version = "3", optional = true, default-features = false, features = [ "rustls" ] }
sha2 = { version = "0.10", optional = true }
tracing = { version = "0.1", optional = true, default-features = false }
half = { version = "2.1", default-features = false, optional = true }
Expand Down
1 change: 1 addition & 0 deletions ort-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn fetch_file(source_url: &str) -> Vec<u8> {
.proxy(ureq::Proxy::try_from_env())
.max_redirects(0)
.https_only(true)
.tls_config(ureq::tls::TlsConfig::builder().provider(ureq::tls::TlsProvider::NativeTls).build())
.user_agent(format!(
"{}/{} (host {}; for {})",
env!("CARGO_PKG_NAME"),
Expand Down

0 comments on commit cfc5a70

Please sign in to comment.