Skip to content

Commit 876ac63

Browse files
committed
[DWARF] Prevent extra slashes in generated debuginfod urls
1 parent fdb2fc3 commit 876ac63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/dwarf/dwarf_import/src/helpers.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,11 @@ pub(crate) fn download_debug_info(
453453
settings.get_string_list_with_opts("network.debuginfodServers", &mut settings_query_opts);
454454

455455
for debug_server_url in debug_server_urls.iter() {
456-
let artifact_url = format!("{}/buildid/{}/debuginfo", debug_server_url, build_id);
456+
let artifact_url = format!(
457+
"{}/buildid/{}/debuginfo",
458+
debug_server_url.trim_end_matches("/"),
459+
build_id
460+
);
457461

458462
// Download from remote
459463
let (tx, rx) = mpsc::channel();

0 commit comments

Comments
 (0)