mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
rewrapped Rc<RefCell<Response>> into Rc<Response>
This commit is contained in:
parent
ba8f007b88
commit
c5982872c8
3 changed files with 20 additions and 24 deletions
|
@ -22,7 +22,7 @@ impl ResponseMethods for Response {
|
|||
response_type: ResponseType::Default,
|
||||
termination_reason: None,
|
||||
url: None,
|
||||
url_list: Vec::new(),
|
||||
url_list: RefCell::new(Vec::new()),
|
||||
status: Some(StatusCode::Ok),
|
||||
headers: Headers::new(),
|
||||
body: ResponseBody::Empty,
|
||||
|
@ -42,7 +42,7 @@ impl ResponseMethods for Response {
|
|||
}
|
||||
let old_headers = self.headers.clone();
|
||||
let mut response = self.clone();
|
||||
response.internal_response = Some(Rc::new(RefCell::new(self)));
|
||||
response.internal_response = Some(Rc::new(self));
|
||||
match filter_type {
|
||||
ResponseType::Default | ResponseType::Error => unreachable!(),
|
||||
ResponseType::Basic => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue