Do GET requests when downloading

This commit is contained in:
FliegendeWurst 2021-05-13 12:10:45 +02:00
parent d5037f9ae7
commit 218e63f7db

View File

@ -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) => {