mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-28 20:56:47 +02:00
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:
1 parent
afd9f4e278
commit
1b4b40c95d
5 files changed
+392
-33
No files matched your search
+2
-2
@@ -146,10 +146,10 @@ fn hibp_breach(username: String) -> JsonResult {
|
||||
username
|
||||
);
|
||||
|
||||
use reqwest::{header::USER_AGENT, Client};
|
||||
use reqwest::{header::USER_AGENT, blocking::Client};
|
||||
|
||||
if let Some(api_key) = crate::CONFIG.hibp_api_key() {
|
||||
let hibp_client = Client::builder().use_sys_proxy().build()?;
|
||||
let hibp_client = Client::builder().build()?;
|
||||
|
||||
let res = hibp_client
|
||||
.get(&url)
|
||||
|
||||
Reference in new issue
Block a user