Open
Description
I have a use-case where I need to be able to construct URLs that end in …/.
or …/..
1; however, the url
crate insists on removing dot segments no matter what API I go through, even when the dots are percent-escaped, e.g.:
fn main() {
let url = url::Url::parse("https://example.com/path/%2e%2e").unwrap();
// Prints "https://example.com/":
println!("{url}");
}
Is there currently a method to construct a URL like this using this crate? If not, could such a method be added?
Footnotes
-
Specifically, this is for manipulating GitHub labels via the GitHub REST API; if a user names a label with dot or dot-dot, the URL ends up with dots at the end. ↩
Metadata
Metadata
Assignees
Labels
No labels