Wasm fix
This commit is contained in:
parent
44dfbd2fa6
commit
f2163164bf
1 changed files with 5 additions and 5 deletions
|
@ -307,13 +307,13 @@ impl Client {
|
|||
|
||||
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"))]
|
||||
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 {
|
||||
http_client.danger_accept_invalid_certs(true)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue