This commit is contained in:
2023-08-09 09:09:03 +02:00
parent 06b4459775
commit 1617c7624b

View File

@@ -30,7 +30,7 @@ pub async fn download(
) -> Result<(SpooledTempFile, String), Box<dyn std::error::Error + Send + Sync>> {
let mut response = reqwest::Client::new()
.get(format!(
"{}/api/v1/download/{book_id}/{file_type}",
"{}/api/v1/download/{book_id}/{file_type}/",
&config::CONFIG.cache_url
))
.header("Authorization", &config::CONFIG.cache_api_key)