]> granicus.if.org Git - apache/commitdiff
mod_cache_socache: Don't clean up too soon. If we do, revalidated requests
authorGraham Leggett <minfrin@apache.org>
Sat, 8 Dec 2012 12:04:33 +0000 (12:04 +0000)
committerGraham Leggett <minfrin@apache.org>
Sat, 8 Dec 2012 12:04:33 +0000 (12:04 +0000)
lose their bodies.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1418648 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_cache_socache.c

index 979e494e80fc84ef00a81c07a433d51f03e4ea93..9632db123e45ffb9b0cffd4422f10ae79da364b2 100644 (file)
@@ -1105,7 +1105,6 @@ static apr_status_t commit_entity(cache_handle_t *h, request_rec *r)
                 sobj->key);
         goto fail;
     }
-    apr_brigade_cleanup(sobj->body);
     if (len >= sobj->buffer_len - sobj->body_offset) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(02383)
                 "body too big for the cache buffer, not caching: %s",