Skip to content

set_scheme should fail if url has host or port - #366

Closed
tmccombs wants to merge 1 commit into
servo:masterfrom
tmccombs:file_scheme_change
Closed

tmccombs wants to merge 1 commit into
servo:masterfrom
tmccombs:file_scheme_change

Conversation

@tmccombs

@tmccombs tmccombs commented Jun 18, 2017 •

Copy link
Copy Markdown
Contributor

Fixes #278


This change is Reviewable

@tmccombs
tmccombs force-pushed the file_scheme_change branch from e30bcfe to b909104 Compare June 18, 2017 06:47
@tmccombs
tmccombs force-pushed the file_scheme_change branch from b909104 to 82f06b6 Compare June 18, 2017 06:49
Comment thread tests/unit.rs
Url::parse("mailto:").unwrap().cannot_be_a_base();
}

#[test]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is the best place to put the unit test.

@SimonSapin

Copy link
Copy Markdown
Member

Thank you for the PR. The code looks ok at first glance, but this may not be the right change to. Let’s discuss in #278.

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #517) made this pull request unmergeable. Please resolve the merge conflicts.

@djc

djc commented Aug 25, 2020

Copy link
Copy Markdown
Contributor

The test proposed in #278 seems to pass now, so I don't think we need this anymore. Let me know if you have a different opinion!

@djc djc closed this Aug 25, 2020
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 this pull request may close these issues.

Setting the scheme to "file" should fail if there's a host or port

4 participants