Skip to content

Commit 70a82f4

Browse files
committed
use clean URL for status reporting
1 parent 79a66f0 commit 70a82f4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/core.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ pub fn retrieve_asset(
550550

551551
if cache.is_some() && cache.as_ref().unwrap().contains_key(&cache_key) {
552552
// URL is in cache, we get and return it
553-
print_info_message(&format!("{} (from cache)", &url), options);
553+
print_info_message(&format!("{} (from cache)", &cache_key), options);
554554

555555
Ok((
556556
cache.as_ref().unwrap().get(&cache_key).unwrap().0.to_vec(),
@@ -600,9 +600,12 @@ pub fn retrieve_asset(
600600
let response_url: Url = response.url().clone();
601601

602602
if url.as_str() == response_url.as_str() {
603-
print_info_message(&format!("{}", &url), options);
603+
print_info_message(&cache_key.to_string(), options);
604604
} else {
605-
print_info_message(&format!("{} -> {}", &url, &response_url), options);
605+
print_info_message(
606+
&format!("{} -> {}", &cache_key, &response_url),
607+
options,
608+
);
606609
}
607610

608611
let new_cache_key: String = clean_url(response_url.clone()).to_string();

0 commit comments

Comments
 (0)