Commit 55a6250c authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐

update reqwest

parent 03dad5a5
Pipeline #96238 passed with stages
in 17 minutes and 40 seconds
This diff is collapsed.
......@@ -16,7 +16,7 @@ gio = "0.8"
gtk = "0.8"
gdk = "0.12"
rocket = "0.4.2"
reqwest = "0.9.5"
reqwest = { version = "0.10", features = ["blocking"] }
log = "0.4.0"
env_logger = "0.7"
rocket_cors = "0.5"
......
......@@ -97,7 +97,7 @@ fn main() -> Result<(), Error> {
let opt = Opt::from_args();
let url = opt.cmd.get_url(&opt.host, opt.port);
let mut resp = reqwest::get(url.as_str())?;
let resp = reqwest::blocking::get(url.as_str())?;
if resp.status().is_success() {
println!("{}", resp.text().unwrap());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment