mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Fix
This commit is contained in:
@@ -29,7 +29,7 @@ pub async fn get_cached_message(
|
|||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
let response = client
|
let response = client
|
||||||
.get(format!(
|
.get(format!(
|
||||||
"{}/api/v1/{id}/{format}",
|
"{}/api/v1/{id}/{format}/",
|
||||||
&config::CONFIG.cache_server_url
|
&config::CONFIG.cache_server_url
|
||||||
))
|
))
|
||||||
.header("Authorization", &config::CONFIG.cache_server_api_key)
|
.header("Authorization", &config::CONFIG.cache_server_api_key)
|
||||||
@@ -53,7 +53,7 @@ pub async fn download_file(
|
|||||||
|
|
||||||
let response = reqwest::Client::new()
|
let response = reqwest::Client::new()
|
||||||
.get(format!(
|
.get(format!(
|
||||||
"{}/api/v1/download/{id}/{format}",
|
"{}/api/v1/download/{id}/{format}/",
|
||||||
&config::CONFIG.cache_server_url
|
&config::CONFIG.cache_server_url
|
||||||
))
|
))
|
||||||
.header("Authorization", &config::CONFIG.cache_server_api_key)
|
.header("Authorization", &config::CONFIG.cache_server_api_key)
|
||||||
|
|||||||
Reference in New Issue
Block a user