Skip to content
Permalink
Browse files

Use unfiltered response body when replicating body of cached responses.

  • Loading branch information...
jdm committed Oct 3, 2019
1 parent 84693d8 commit d8cdc71a288f8786a50a5ea2e89aab21bf9dcecb
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,

0 comments on commit d8cdc71

Please sign in to comment.
You can’t perform that action at this time.