This commit is contained in:
2023-08-09 02:22:12 +02:00
parent 9b35b41ad1
commit 556b447c82

View File

@@ -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)