View | Details | Raw Unified | Return to bug 30278
Collapse All | Expand All

(-)httpd-2.0.51.orig/modules/experimental/mod_disk_cache.c (-5 / +6 lines)
Lines 581-586 static apr_status_t store_headers(cache_ Link Here
581
        if (r->headers_out) {
581
        if (r->headers_out) {
582
            apr_table_t *headers_out;
582
            apr_table_t *headers_out;
583
583
584
            /* This case only occurs when the content is generated locally */
585
            if (!apr_table_get(r->headers_out, "Content-Type") && r->content_type) {
586
                apr_table_setn(r->headers_out, "Content-Type",
587
                               ap_make_content_type(r, r->content_type));
588
            }
589
584
            headers_out = ap_cache_cacheable_hdrs_out(r->pool, r->headers_out);
590
            headers_out = ap_cache_cacheable_hdrs_out(r->pool, r->headers_out);
585
591
586
            rv = store_table(hfd, headers_out);
592
            rv = store_table(hfd, headers_out);
Lines 588-598 static apr_status_t store_headers(cache_ Link Here
588
                return rv;
594
                return rv;
589
            }
595
            }
590
596
591
            /* This case only occurs when the content is generated locally */
592
            if (!apr_table_get(r->headers_out, "Content-Type") && r->content_type) {
593
                apr_table_setn(r->headers_out, "Content-Type",
594
                               ap_make_content_type(r, r->content_type));
595
            }
596
        }
597
        }
597
598
598
        /* Parse the vary header and dump those fields from the headers_in. */
599
        /* Parse the vary header and dump those fields from the headers_in. */

Return to bug 30278