Updated reqwest to the latest version.

- Use the blocking client (no async).
- Disabled gzip.
- use_sys_proxy is now default.
This commit is contained in:
BlackDex
2020-03-14 23:12:45 +01:00
parent afd9f4e278
commit 1b4b40c95d
5 changed files with 392 additions and 33 deletions

View File

@@ -187,7 +187,7 @@ fn activate_duo_put(data: JsonUpcase<EnableDuoData>, headers: Headers, conn: DbC
fn duo_api_request(method: &str, path: &str, params: &str, data: &DuoData) -> EmptyResult {
const AGENT: &str = "bitwarden_rs:Duo/1.0 (Rust)";
use reqwest::{header::*, Client, Method};
use reqwest::{header::*, Method, blocking::Client};
use std::str::FromStr;
let url = format!("https://{}{}", &data.host, path);