mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
fix: remove a trailing slash in registry index URL (#1528)
This commit is contained in:
parent
f29543e555
commit
b296ac5315
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ impl Registry {
|
|||
|
||||
fn from_str_inner(s: &str) -> Result<Self, InvalidRegistryErrorInner> {
|
||||
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" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue