aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2019-04-12 13:49:41 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2019-04-12 19:02:07 +0200
commit44163148c2fe2b6b92f1129a493e086ab5594d19 (patch)
tree5972d4108b31821b64d5274185be10b36b1faed0 /components/script/dom/xmlhttprequest.rs
parenta74f5222db7f7f39e426cd0b8836f5b806730ef7 (diff)
downloadservo-44163148c2fe2b6b92f1129a493e086ab5594d19.tar.gz
servo-44163148c2fe2b6b92f1129a493e086ab5594d19.zip
Make use of RefCell::try_borrow_unguarded
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index e0ba954964c..cb1d0d06196 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -1442,8 +1442,6 @@ impl XMLHttpRequest {
fn filter_response_headers(&self) -> HeaderMap {
// https://fetch.spec.whatwg.org/#concept-response-header-list
- use http::header::{self, HeaderName};
-
let mut headers = self.response_headers.borrow().clone();
headers.remove(header::SET_COOKIE);
headers.remove(HeaderName::from_static("set-cookie2"));