Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[extra::url] Support relative URLs #10706

Closed
SimonSapin opened this issue Nov 28, 2013 · 0 comments · Fixed by #16076
Closed

[extra::url] Support relative URLs #10706

SimonSapin opened this issue Nov 28, 2013 · 0 comments · Fixed by #16076

Comments

@SimonSapin
Copy link
Contributor

The module currently does not support parsing relative URLs such as ../foo.html.

There should be an additional parsing function that takes an optional parsed base URL:

pub fn parse(url: &str, base_url: Option<Url>) -> Result<Url, ~str> { /* …*/ }

(The current from_str function would just call parse with None for the base URL.)

@aturon aturon added the A-libs label Jun 3, 2014
SimonSapin added a commit to SimonSapin/rust that referenced this issue Jul 30, 2014
The replacement is [rust-url](https://github.com/servo/rust-url),
which can be used with Cargo.

Fix rust-lang#15874
Fix rust-lang#10707
Close rust-lang#10706
Close rust-lang#10705
Close rust-lang#8486
bors added a commit that referenced this issue Jul 31, 2014
The replacement is [rust-url](https://github.com/servo/rust-url), which can be used with Cargo.

Fix #15874
Fix #10707
Close #10706
Close #10705
Close #8486
flip1995 pushed a commit to flip1995/rust that referenced this issue May 5, 2023
…check, r=llogiq

Remove check for `lib.register_*` and `src/docs*` in `cargo dev update_lints`

The transition period has well passed

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants