master
Stephen 2020-07-16 20:53:09 -03:00
parent 44dfbd2fa6
commit f2163164bf
1 changed files with 5 additions and 5 deletions

View File

@ -307,13 +307,13 @@ impl Client {
let http_client = reqwest::Client::builder(); let http_client = reqwest::Client::builder();
let http_client = match config.timeout {
Some(x) => http_client.timeout(x),
None => http_client,
};
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_arch = "wasm32"))]
let http_client = { let http_client = {
let http_client = match config.timeout {
Some(x) => http_client.timeout(x),
None => http_client,
};
let http_client = if config.disable_ssl_verification { let http_client = if config.disable_ssl_verification {
http_client.danger_accept_invalid_certs(true) http_client.danger_accept_invalid_certs(true)
} else { } else {