From 83df4129ead6839d026fb8424b7519ac02565d1b Mon Sep 17 00:00:00 2001 From: Kieran Date: Sat, 21 Jun 2025 22:25:46 +0100 Subject: [PATCH] chore: more mirror logging --- src/routes/blossom.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/routes/blossom.rs b/src/routes/blossom.rs index 6e6cbc4..49d3bfc 100644 --- a/src/routes/blossom.rs +++ b/src/routes/blossom.rs @@ -244,14 +244,16 @@ async fn mirror( .and_then(|mut c| c.next_back()) .and_then(|s| s.split(".").next()); - let client = Client::builder() - .user_agent(format!("route96 ({})", settings.public_url)) - .build() - .unwrap(); + let client = Client::builder().build().unwrap(); + let req = client + .get(url.clone()) + .header("user-agent", format!("route96 ({})", settings.public_url)); info!("Requesting mirror: {}", url); + info!("{:?}", req); + // download file - let rsp = match client.get(url.clone()).send().await { + let rsp = match req.send().await { Err(e) => { error!("Error downloading file: {}", e); return BlossomResponse::error("Failed to mirror file");