From bbe7ae5c8ca9a195556828fcb9d500ab2fcfdbd2 Mon Sep 17 00:00:00 2001 From: Ninjani <48680156+Ninjani@users.noreply.github.com> Date: Wed, 20 Jan 2021 16:30:44 +0100 Subject: [PATCH] fix(URI): URI should have path --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 876e006..4688ddb 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -113,7 +113,7 @@ pub fn clean_uri(uri: &str) -> String { if parsed_uri.scheme() == "urn" { uri.to_owned() } else { - parsed_uri[url::Position::AfterScheme..url::Position::BeforePath] + parsed_uri[url::Position::AfterScheme..] .trim_start_matches("://") .to_owned() }