Remove mutability requirement from fetch_async_background.

This commit is contained in:
Josh Matthews 2017-02-28 10:23:23 -05:00
parent a780f6f28c
commit f0f43ad9b0

View file

@ -120,7 +120,7 @@ impl DocumentLoader {
}
/// Initiate a new fetch that does not block the document load event.
pub fn fetch_async_background(&mut self,
pub fn fetch_async_background(&self,
request: RequestInit,
fetch_target: IpcSender<FetchResponseMsg>) {
self.resource_threads.sender().send(CoreResourceMsg::Fetch(request, fetch_target)).unwrap();