servo / rust-url

URL parser for Rust
https://docs.rs/url/
Apache License 2.0
1.31k stars 325 forks source link

Feature request: add parser boolean option to leave relative paths in the URL. #899

Open evilsocket opened 8 months ago

evilsocket commented 8 months ago

Hi all, for a project of mine I'd need this library to optionally leave relative paths unparsed (another reference). This seems unavoidable due to this piece of code in the parsing logic. It would be nice if a parsing boolean option were to be added so that that condition can be bypassed, resulting in ".." be left alone and handled by the server.