aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/cookie.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/cookie.rs')
-rw-r--r--components/net/cookie.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/cookie.rs b/components/net/cookie.rs
index 7351e14e5c8..45b2b48926c 100644
--- a/components/net/cookie.rs
+++ b/components/net/cookie.rs
@@ -46,7 +46,7 @@ impl Cookie {
// Step 5
match PUB_DOMAINS.iter().find(|&x| domain == *x) {
- Some(val) if *val == url_host => domain = "".to_string(),
+ Some(val) if *val == url_host => domain = "".to_owned(),
Some(_) => return None,
None => {}
}
@@ -154,7 +154,7 @@ impl Cookie {
}
}
- if self.cookie.secure && url.scheme != "https".to_string() {
+ if self.cookie.secure && url.scheme != "https".to_owned() {
return false;
}
if self.cookie.httponly && source == CookieSource::NonHTTP {