aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/http_cache.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-10-03 02:21:27 -0400
committerGitHub <noreply@github.com>2019-10-03 02:21:27 -0400
commitd8cdc71a288f8786a50a5ea2e89aab21bf9dcecb (patch)
treeaebb09e4f07370aee41485b1cc340657e5bf994e /components/net/http_cache.rs
parent84693d81173b58c4afc408a7295210960842484a (diff)
downloadservo-d8cdc71a288f8786a50a5ea2e89aab21bf9dcecb.tar.gz
servo-d8cdc71a288f8786a50a5ea2e89aab21bf9dcecb.zip
Use unfiltered response body when replicating body of cached responses.
Diffstat (limited to 'components/net/http_cache.rs')
-rw-r--r--components/net/http_cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/http_cache.rs b/components/net/http_cache.rs
index 4f751405d75..0ff5153f324 100644
--- a/components/net/http_cache.rs
+++ b/components/net/http_cache.rs
@@ -669,7 +669,7 @@ impl HttpCache {
/// Updating consumers who received a response constructed with a ResponseBody::Receiving.
pub fn update_awaiting_consumers(&mut self, request: &Request, response: &Response) {
- if let ResponseBody::Done(ref completed_body) = *response.body.lock().unwrap() {
+ if let ResponseBody::Done(ref completed_body) = *response.actual_response().body.lock().unwrap() {
let entry_key = CacheKey::new(request.clone());
if let Some(cached_resources) = self.entries.get(&entry_key) {
// Ensure we only wake-up consumers of relevant resources,