Skip to content

Commit

Permalink
fix(URI): URI should have path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjani committed Jan 20, 2021
1 parent b8562c1 commit bbe7ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit bbe7ae5

Please sign in to comment.