mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 12:35:39 +01:00
Fix
This commit is contained in:
@@ -94,12 +94,12 @@ async fn download(Path((chat_id, message_id)): Path<(i64, i32)>) -> impl IntoRes
|
|||||||
Ok(v) => {
|
Ok(v) => {
|
||||||
match v {
|
match v {
|
||||||
Some(v) => v,
|
Some(v) => v,
|
||||||
None => return StatusCode::BAD_REQUEST.into_response(),
|
None => return StatusCode::NO_CONTENT.into_response(),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
log::error!("{}", err);
|
log::error!("{}", err);
|
||||||
return StatusCode::BAD_REQUEST.into_response()
|
return StatusCode::INTERNAL_SERVER_ERROR.into_response()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user