From 8164620469d7a30569913fe9cf2308f1522db31c Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:41:56 +1000 Subject: [PATCH] fix multi-slash --- cmd/soroban-cli/src/commands/snapshot/create.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/soroban-cli/src/commands/snapshot/create.rs b/cmd/soroban-cli/src/commands/snapshot/create.rs index 17c572692..86eecdc8d 100644 --- a/cmd/soroban-cli/src/commands/snapshot/create.rs +++ b/cmd/soroban-cli/src/commands/snapshot/create.rs @@ -359,6 +359,8 @@ impl Cmd { } async fn get_history(archive_url: &Uri, ledger: Option) -> Result { + let archive_url = archive_url.to_string(); + let archive_url = archive_url.strip_suffix("/").unwrap_or(&archive_url); let history_url = if let Some(ledger) = ledger { let ledger_hex = format!("{ledger:08x}"); let ledger_hex_0 = &ledger_hex[0..=1];