mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-11-21 18:56:27 +00:00
Merge pull request #45 from ViViDboarder/dependabot/cargo/reqwest-0.11.4
This commit is contained in:
commit
f1b229ebc3
1218
Cargo.lock
generated
1218
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@ edition = "2018"
|
||||
ldap3 = "0.9"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
toml = "0.5"
|
||||
reqwest = "0.9"
|
||||
reqwest = { version = "0.11", features = ["json", "blocking"] }
|
||||
serde_json = "1.0"
|
||||
thiserror = "1.0"
|
||||
anyhow = "1.0"
|
||||
|
@ -2,7 +2,7 @@ extern crate reqwest;
|
||||
extern crate serde;
|
||||
extern crate thiserror;
|
||||
|
||||
use reqwest::Response;
|
||||
use reqwest::blocking::Response;
|
||||
use serde::Deserialize;
|
||||
use std::collections::HashMap;
|
||||
use std::fs::File;
|
||||
@ -72,8 +72,9 @@ impl Client {
|
||||
reqwest::Certificate::from_der(&buf).expect("Could not load DER root cert file")
|
||||
}
|
||||
|
||||
fn get_http_client(&self) -> reqwest::Client {
|
||||
let mut client = reqwest::Client::builder().redirect(reqwest::RedirectPolicy::none());
|
||||
fn get_http_client(&self) -> reqwest::blocking::Client {
|
||||
let mut client =
|
||||
reqwest::blocking::Client::builder().redirect(reqwest::redirect::Policy::none());
|
||||
|
||||
if !&self.root_cert_file.is_empty() {
|
||||
let cert = self.get_root_cert();
|
||||
|
Loading…
Reference in New Issue
Block a user