]> granicus.if.org Git - apache/commitdiff
mod_disk_cache: don't store hop-by-hop headers on-disk.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sat, 2 Oct 2004 16:59:52 +0000 (16:59 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sat, 2 Oct 2004 16:59:52 +0000 (16:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105368 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/experimental/mod_disk_cache.c

diff --git a/CHANGES b/CHANGES
index 3ff91417c3f4b55e40f89eac9e82830a58215dcc..a751e4219b1acda1ab9a86a0251af0bdbcf715eb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@ Changes with Apache 2.1.0-dev
 
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) mod_disk_cache: Do not store hop-by-hop headers.  [Justin Erenkrantz]
+
   *) mod_cache: Try to correctly follow RFC 2616 13.3 on validating stale
      cache responses.  [Justin Erenkrantz]
 
index c835f6f193b2fcdb9141f7df485a775433901c8e..6ec6fd9e04810fc4ff0b7ed1aa8e7a9bb9657739 100644 (file)
@@ -625,7 +625,10 @@ static apr_status_t store_headers(cache_handle_t *h, request_rec *r, cache_info
         /* Make call to the same thing cache_select_url calls to crack Vary. */
         /* @@@ Some day, not today. */
         if (r->headers_in) {
-            rv = store_table(dobj->hfd, r->headers_in);
+            apr_table_t *headers_in;
+
+            headers_in = ap_cache_cacheable_hdrs_out(r->pool, r->headers_in);
+            rv = store_table(dobj->hfd, headers_in);
             if (rv != APR_SUCCESS) {
                 return rv;
             }