1
0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2025-01-24 13:56:52 +02:00

Swap back to older reqwest API

This commit is contained in:
Tom Parker-Shemilt 2020-06-02 23:02:18 +01:00
parent 75a1a01825
commit 5e9357ed6f

View File

@ -109,7 +109,7 @@ lazy_static! {
.danger_accept_invalid_certs(true) // because some certs are out of date
.user_agent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0") // so some sites (e.g. sciter.com) don't reject us
.redirect(Policy::none())
.pool_max_idle_per_host(0)
.max_idle_per_host(0)
.timeout(time::Duration::from_secs(20))
.build().unwrap();