Make use of RefCell::try_borrow_unguarded

This commit is contained in:
Anthony Ramine 2019-04-12 13:49:41 +02:00
parent a74f5222db
commit 44163148c2
7 changed files with 11 additions and 8 deletions

View file

@ -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"));