Skip to content

Commit

Permalink
fixup! Fix mutating path of URL without authority (idempotency, empty…
Browse files Browse the repository at this point in the history
… path segments)
  • Loading branch information
theskim committed Dec 17, 2024
1 parent 392e68d commit d204125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2147,7 +2147,7 @@ impl Url {
if suffix.starts_with("/.//") {
suffix.drain(.."/.".len());
// pathname should be "//p" not "p" given that the first segment was empty
self.path_start -= "//".len() as u32;
self.path_start -= "/.".len() as u32;
}

if let Some(new_port) = opt_new_port {
Expand Down

0 comments on commit d204125

Please sign in to comment.