From 1e0ab08c421b9cccbf07244ad5b37e5b95a60ead Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 5 Dec 2016 14:12:36 -1000 Subject: [PATCH] Stop returning the response from fetch(). --- components/net/fetch/methods.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index 1a2c4ae0f4b..9eedd748c2d 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -44,16 +44,14 @@ pub type DoneChannel = Option<(Sender, Receiver)>; /// [Fetch](https://fetch.spec.whatwg.org#concept-fetch) pub fn fetch(request: Rc, target: Target, - context: &FetchContext) - -> Response { - fetch_with_cors_cache(request, &mut CorsCache::new(), target, context) + context: &FetchContext) { + fetch_with_cors_cache(request, &mut CorsCache::new(), target, context); } pub fn fetch_with_cors_cache(request: Rc, cache: &mut CorsCache, target: Target, - context: &FetchContext) - -> Response { + context: &FetchContext) { // Step 1 if request.window.get() == Window::Client { // TODO: Set window to request's client object if client is a Window object @@ -112,7 +110,7 @@ pub fn fetch_with_cors_cache(request: Rc, } // Step 7 - main_fetch(request, cache, false, false, target, &mut None, &context) + main_fetch(request, cache, false, false, target, &mut None, &context); } /// [Main fetch](https://fetch.spec.whatwg.org/#concept-main-fetch)