Commit a47bd5b2 authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

* modules/cache/mod_disk_cache.c: Cache r->err_headers_out headers. This

allows CGI scripts to be properly cached.

This issue was pointed out by Sander Striker.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@126042 13f79535-47bb-0310-9956-ffa450edef68
parent 47680b5c
Loading
Loading
Loading
Loading
+3 −0
Changes for CHANGES: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@ Changes with Apache 2.1.3
  [Remove entries to the current 2.0 section below, when backported]
  *) mod_disk_cache: Cache r->err_headers_out headers.  This allows CGI
     scripts to be properly cached.  [Justin Erenkrantz, Sander Striker]
  *) mod_ldap: Updated to use the new apr-util v1.1 apr_ldap_*_option()
     API for the setting of server and client SSL certificates. Replaced
     LDAPTrustedCA directive with LDAPTrustedGlobalCert and
+2 −0
Changes for modules/cache/mod_disk_cache.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -598,6 +598,8 @@ static apr_status_t store_headers(cache_handle_t *h, request_rec *r, cache_info
                               ap_make_content_type(r, r->content_type));
            }

            headers_out = apr_table_overlay(r->pool, headers_out,
                                            r->err_headers_out);
            rv = store_table(dobj->hfd, headers_out);
            if (rv != APR_SUCCESS) {
                return rv;