From b296ac53151bff4d466b204ebeb00b4cf3bc49da Mon Sep 17 00:00:00 2001 From: Marcus Griep Date: Thu, 14 Dec 2023 23:14:21 -0700 Subject: [PATCH] fix: remove a trailing slash in registry index URL (#1528) --- crates/binstalk-registry/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/binstalk-registry/src/lib.rs b/crates/binstalk-registry/src/lib.rs index 30923f6a..065bb619 100644 --- a/crates/binstalk-registry/src/lib.rs +++ b/crates/binstalk-registry/src/lib.rs @@ -152,7 +152,7 @@ impl Registry { fn from_str_inner(s: &str) -> Result { if let Some(s) = s.strip_prefix("sparse+") { - let url = Url::parse(s)?; + let url = Url::parse(s.trim_end_matches('/'))?; let scheme = url.scheme(); if scheme != "http" && scheme != "https" {