Skip to content

Commit

Permalink
Bump rquest to v0.33.3, cargo update
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Dec 18, 2024
1 parent 2f49154 commit 2e53c4b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pyo3 = { version = "0.23", features = ["extension-module", "abi3-py38", "indexma
anyhow = "1"
log = "0.4"
pyo3-log = "0.12"
rquest = { version = "0.31", features = [
rquest = { version = "0.33", features = [
"cookies",
"multipart",
"json",
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl Client {

// Verify
if verify.unwrap_or(true) {
client_builder = client_builder.ca_cert_store(load_ca_certs);
client_builder = client_builder.root_certs_store(load_ca_certs);
} else {
client_builder = client_builder.danger_accept_invalid_certs(true);
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ use indexmap::IndexMap;
use rquest::boring::{
error::ErrorStack,
x509::{
store::{X509Store, X509StoreBuilder, X509StoreRef},
store::{X509Store, X509StoreBuilder},
X509,
},
};

/// Loads the CA certificates from venv var PRIMP_CA_BUNDLE or the WebPKI certificate store
pub fn load_ca_certs() -> Option<&'static X509StoreRef> {
pub fn load_ca_certs() -> Option<&'static X509Store> {
static CERT_STORE: LazyLock<Result<X509Store, ErrorStack>> = LazyLock::new(|| {
let mut ca_store = X509StoreBuilder::new()?;
if let Some(ca_cert_path) = std::env::var("PRIMP_CA_BUNDLE")
Expand Down

0 comments on commit 2e53c4b

Please sign in to comment.