From 0d9ab894bef3aa0761471d004081d8fe9577d207 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 30 Nov 2018 19:03:47 -0500 Subject: [PATCH] net: Wait for underlying response body of filtered responses. --- components/net/fetch/methods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index b98859c6a29..54edee43e92 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -478,7 +478,7 @@ fn wait_for_response(response: &mut Response, target: Target, done_chan: &mut Do } } } else { - let body = response.body.lock().unwrap(); + let body = response.actual_response().body.lock().unwrap(); if let ResponseBody::Done(ref vec) = *body { // in case there was no channel to wait for, the body was // obtained synchronously via scheme_fetch for data/file/about/etc