From 218e63f7dbc3e1fc4aad1d240b57f34956227351 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 13 May 2021 12:10:45 +0200 Subject: [PATCH] Do GET requests when downloading --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cda1df6..2f79ee3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -996,7 +996,7 @@ impl ILIAS { format!("{}{}", ILIAS_URL, url) }; for attempt in 1..10 { - let result = self.client.head(url.clone()).send().await; + let result = self.client.get(url.clone()).send().await; match result { Ok(x) => return Ok(x), Err(e) if attempt <= 3 && error_is_http2(&e) => {