mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Do GET requests when downloading
This commit is contained in:
parent
d5037f9ae7
commit
218e63f7db
@ -996,7 +996,7 @@ impl ILIAS {
|
|||||||
format!("{}{}", ILIAS_URL, url)
|
format!("{}{}", ILIAS_URL, url)
|
||||||
};
|
};
|
||||||
for attempt in 1..10 {
|
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 {
|
match result {
|
||||||
Ok(x) => return Ok(x),
|
Ok(x) => return Ok(x),
|
||||||
Err(e) if attempt <= 3 && error_is_http2(&e) => {
|
Err(e) if attempt <= 3 && error_is_http2(&e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user