diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-04-05 14:42:59 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-04-05 14:42:59 +0200 |
commit | fb86bfebf406cfbe02bee1ad924e6b8e243453ef (patch) | |
tree | af1eaeeb7cef6b2f684cb780d974ec5f57b9bf07 /components/net_traits/request.rs | |
parent | 170bcfc03e18ffa3c504022f65c87e2189575020 (diff) | |
download | servo-fb86bfebf406cfbe02bee1ad924e6b8e243453ef.tar.gz servo-fb86bfebf406cfbe02bee1ad924e6b8e243453ef.zip |
Introduce HstsList::switch_known_hsts_host_domain_url_to_https
Diffstat (limited to 'components/net_traits/request.rs')
-rw-r--r-- | components/net_traits/request.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/net_traits/request.rs b/components/net_traits/request.rs index b306184a796..9e1a00822f4 100644 --- a/components/net_traits/request.rs +++ b/components/net_traits/request.rs @@ -330,6 +330,11 @@ impl Request { self.url_list.last().unwrap().clone() } + /// https://fetch.spec.whatwg.org/#concept-request-current-url + pub fn current_url_mut(&mut self) -> &mut ServoUrl { + self.url_list.last_mut().unwrap() + } + /// https://fetch.spec.whatwg.org/#navigation-request pub fn is_navigation_request(&self) -> bool { self.destination == Destination::Document |