mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-01-21 01:12:28 -05:00
Merge pull request #571 from BlackDex/icon-proxy-support
Added reqwest proxy support
This commit is contained in:
commit
27c23b60b8
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ const ALLOWED_CHARS: &str = "_-.";
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
// Reuse the client between requests
|
// Reuse the client between requests
|
||||||
static ref CLIENT: Client = Client::builder()
|
static ref CLIENT: Client = Client::builder()
|
||||||
|
.use_sys_proxy()
|
||||||
.gzip(true)
|
.gzip(true)
|
||||||
.timeout(Duration::from_secs(CONFIG.icon_download_timeout()))
|
.timeout(Duration::from_secs(CONFIG.icon_download_timeout()))
|
||||||
.default_headers(_header_map())
|
.default_headers(_header_map())
|
||||||
|
|
Loading…
Add table
Reference in a new issue