We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830c773 commit dd224a3Copy full SHA for dd224a3
src/lib.rs
@@ -1954,6 +1954,13 @@ impl Url {
1954
1955
parser.serialization.push_str(self.slice(old_scheme_end..));
1956
self.serialization = parser.serialization;
1957
+
1958
+ // Update the port so it can be removed
1959
+ // If it is the scheme's default
1960
+ // We don't mind it silently failing
1961
+ // If there was no port in the first place
1962
+ let _ = self.set_port(self.port());
1963
1964
Ok(())
1965
}
1966
0 commit comments