We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6dd57b2 + dde2734 commit 1814ca5Copy full SHA for 1814ca5
src/cargo/util/canonical_url.rs
@@ -39,7 +39,9 @@ impl CanonicalUrl {
39
// almost certainly not using the same case conversion rules that GitHub
40
// does. (See issue #84)
41
if url.host_str() == Some("github.com") {
42
- url.set_scheme("https").unwrap();
+ url = format!("https{}", &url[url::Position::AfterScheme..])
43
+ .parse()
44
+ .unwrap();
45
let path = url.path().to_lowercase();
46
url.set_path(&path);
47
}
0 commit comments