Skip to content

Commit

Permalink
Disable ssl for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Chiodino committed Nov 6, 2017
1 parent fdf6563 commit b382c1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nicehash_api_raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ pub fn get_nicehash_response() -> Result<String, self::reqwest::Error> {
use std::io::Read;
const API_URL: &str = "https://api.nicehash.com/api?method=simplemultialgo.info";

let mut resp = reqwest::get(API_URL)?;
let mut resp = reqwest::Client::builder()
.danger_disable_hostname_verification()
.build()?
.get(API_URL)
.send()?;
assert!(resp.status().is_success());

let mut content = String::new();
Expand Down

0 comments on commit b382c1f

Please sign in to comment.