mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Upgrade to rust-url 1.0 and hyper 0.9
This commit is contained in:
parent
305c283602
commit
7932ab6ac2
76 changed files with 524 additions and 888 deletions
|
@ -221,15 +221,6 @@ impl StorageManager {
|
|||
}
|
||||
|
||||
fn origin_as_string(&self, url: Url) -> String {
|
||||
let mut origin = "".to_owned();
|
||||
origin.push_str(&url.scheme);
|
||||
origin.push_str("://");
|
||||
url.domain().map(|domain| origin.push_str(&domain));
|
||||
url.port().map(|port| {
|
||||
origin.push_str(":");
|
||||
origin.push_str(&port.to_string());
|
||||
});
|
||||
origin.push_str("/");
|
||||
origin
|
||||
url.origin().ascii_serialization()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue