diff options
Diffstat (limited to 'components/net/fetch/response.rs')
-rw-r--r-- | components/net/fetch/response.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/net/fetch/response.rs b/components/net/fetch/response.rs index 2ae12b18c4f..150e149ec26 100644 --- a/components/net/fetch/response.rs +++ b/components/net/fetch/response.rs @@ -9,6 +9,7 @@ use std::ascii::AsciiExt; use std::cell::{Cell, RefCell}; use std::rc::Rc; use std::sync::mpsc::Receiver; +use std::sync::{Arc, Mutex}; use url::Url; pub trait ResponseMethods { @@ -24,7 +25,7 @@ impl ResponseMethods for Response { url_list: RefCell::new(Vec::new()), status: Some(StatusCode::Ok), headers: Headers::new(), - body: RefCell::new(ResponseBody::Empty), + body: Arc::new(Mutex::new(ResponseBody::Empty)), cache_state: CacheState::None, https_state: HttpsState::None, internal_response: None, |