mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix BOOK-BOT-98
This commit is contained in:
@@ -98,8 +98,7 @@ pub async fn download_file_by_link(
|
|||||||
let response = CLIENT
|
let response = CLIENT
|
||||||
.get(link)
|
.get(link)
|
||||||
.send()
|
.send()
|
||||||
.await?
|
.await?;
|
||||||
.error_for_status()?;
|
|
||||||
|
|
||||||
if response.status() != StatusCode::OK {
|
if response.status() != StatusCode::OK {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
|
|||||||
Reference in New Issue
Block a user