diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-12-05 14:12:36 -1000 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-12-15 10:50:15 +0100 |
commit | 1e0ab08c421b9cccbf07244ad5b37e5b95a60ead (patch) | |
tree | c2a4e2d0c4f7f3dcdf64e6799d2561ebbcb57f58 /components/net/fetch/methods.rs | |
parent | 217f44b67af541635822dfeb41bf1345c029381d (diff) | |
download | servo-1e0ab08c421b9cccbf07244ad5b37e5b95a60ead.tar.gz servo-1e0ab08c421b9cccbf07244ad5b37e5b95a60ead.zip |
Stop returning the response from fetch().
Diffstat (limited to 'components/net/fetch/methods.rs')
-rw-r--r-- | components/net/fetch/methods.rs | 10 |
1 files 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<Data>, Receiver<Data>)>; /// [Fetch](https://fetch.spec.whatwg.org#concept-fetch) pub fn fetch(request: Rc<Request>, 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<Request>, 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<Request>, } // 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) |