From 746c6e65b786237cfd35860a967a3eb2911be09a Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 2 Mar 2020 12:26:00 +0300 Subject: [PATCH] fix api path --- phase2/src/bin/tornado.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phase2/src/bin/tornado.rs b/phase2/src/bin/tornado.rs index c6741e3..ccf0792 100644 --- a/phase2/src/bin/tornado.rs +++ b/phase2/src/bin/tornado.rs @@ -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()