mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement range index with the Position enum on ServoUrl
This commit is contained in:
parent
22aebdf5d4
commit
0818b44459
6 changed files with 35 additions and 6 deletions
|
@ -931,7 +931,7 @@ pub fn load<A, B>(load_data: &LoadData,
|
|||
// the source rather than rendering the contents of the URL.
|
||||
let viewing_source = doc_url.scheme() == "view-source";
|
||||
if viewing_source {
|
||||
doc_url = ServoUrl::parse(&load_data.url.as_url().unwrap()[Position::BeforeUsername..]).unwrap();
|
||||
doc_url = ServoUrl::parse(&load_data.url[Position::BeforeUsername..]).unwrap();
|
||||
}
|
||||
|
||||
// Loop to handle redirects.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue