]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix expires_by_type_filter. It was not correctly picking up ExpiresDefault.
authorBill Stoddard <stoddard@apache.org>
Wed, 28 May 2003 14:50:40 +0000 (14:50 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 28 May 2003 14:50:40 +0000 (14:50 +0000)
Recreate by setting ExpiresByType yadda/goo A604800
ExpiresDefault "access plus 2 days"

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

modules/metadata/mod_expires.c

index 64fdb0cf142861768a92ca686b0cb24d11f14c4f..c10547509fdcb16f076152eb238bfcd051878dd0 100644 (file)
@@ -526,9 +526,10 @@ static apr_status_t expires_by_type_filter(ap_filter_t *f,
         else if ((notes != NULL) && notes->defaulted) {
             /*
              * None for this type, but there was a default defined --
-             * so use it.
+             * so use it. Add the Expires header and add or replace the
+             * Cache-Control header.
              */
-            t = apr_table_overlay(r->pool, notes->expfields, t);
+            apr_table_overlap(r->headers_out, notes->expfields, APR_OVERLAP_TABLES_SET);
         }
     }
     ap_remove_output_filter(f);