From 869a9b68ed750aa0dad9ab28d998264fd91f9648 Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Sat, 8 Dec 2012 12:04:33 +0000 Subject: [PATCH] mod_cache_socache: Don't clean up too soon. If we do, revalidated requests 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/cache/mod_cache_socache.c b/modules/cache/mod_cache_socache.c index 979e494e80..9632db123e 100644 --- a/modules/cache/mod_cache_socache.c +++ b/modules/cache/mod_cache_socache.c @@ -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", -- 2.40.0