fix api path

This commit is contained in:
Alexey 2020-03-02 12:26:00 +03:00 committed by poma
parent 43438ad68f
commit 746c6e65b7
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

@ -30,7 +30,7 @@ fn main() {
.expect("expected to read some random text from the user");
println!("Downloading challenge...");
let mut resp = reqwest::blocking::get(&*format!("{}/challenge", url)).unwrap();
let mut resp = reqwest::blocking::get(&*format!("{}/api/challenge", url)).unwrap();
if !resp.status().is_success() {
println!("Cannot download challenge");
std::process::exit(1);
@ -84,7 +84,7 @@ fn main() {
let part = multipart::Part::bytes(response).file_name("response").mime_str("application/octet-stream").unwrap();
let client = reqwest::blocking::Client::new();
let resp = client.post(&*format!("{}/response", url))
let resp = client.post(&*format!("{}/api/response", url))
.multipart(multipart::Form::new().part("response", part))
.timeout(Duration::from_secs(300))
.send()