Browse Source
Merge pull request #571 from BlackDex/icon-proxy-support
Added reqwest proxy support
pull/582/head
Daniel García
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/api/icons.rs
|
|
@ -27,6 +27,7 @@ const ALLOWED_CHARS: &str = "_-."; |
|
|
|
lazy_static! { |
|
|
|
// Reuse the client between requests
|
|
|
|
static ref CLIENT: Client = Client::builder() |
|
|
|
.use_sys_proxy() |
|
|
|
.gzip(true) |
|
|
|
.timeout(Duration::from_secs(CONFIG.icon_download_timeout())) |
|
|
|
.default_headers(_header_map()) |
|
|
|