ASF Bugzilla – Attachment 12339 Details for
Bug 30278
mod_disk_cache breakes Content-Type for .css files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed solution patch to mod_disk_cache.c
httpd_30278-2.0.50.diff (text/plain), 1.42 KB, created by
Rüdiger Plüm
on 2004-08-04 20:49:45 UTC
(
hide
)
Description:
proposed solution patch to mod_disk_cache.c
Filename:
MIME Type:
Creator:
Rüdiger Plüm
Created:
2004-08-04 20:49:45 UTC
Size:
1.42 KB
patch
obsolete
>--- httpd-2.0.50/modules/experimental/mod_disk_cache.c.orig 2004-02-09 21:53:16.000000000 +0100 >+++ httpd-2.0.50/modules/experimental/mod_disk_cache.c 2004-08-04 22:22:09.000000000 +0200 >@@ -560,6 +560,12 @@ > > if (r->headers_out) { > int i; >+ >+ /* This case only occurs when the content is generated locally */ >+ if (!apr_table_get(r->headers_out, "Content-Type") && r->content_type) { >+ apr_table_setn(r->headers_out, "Content-Type", >+ ap_make_content_type(r, r->content_type)); >+ } > apr_table_t* headers_out = ap_cache_cacheable_hdrs_out(r->pool, r->headers_out); > apr_table_entry_t *elts = (apr_table_entry_t *) apr_table_elts(headers_out)->elts; > for (i = 0; i < apr_table_elts(headers_out)->nelts; ++i) { >@@ -572,12 +578,6 @@ > buf = apr_pstrcat(r->pool, CRLF, NULL); > amt = strlen(buf); > apr_file_write(hfd, buf, &amt); >- >- /* This case only occurs when the content is generated locally */ >- if (!apr_table_get(r->headers_out, "Content-Type") && r->content_type) { >- apr_table_setn(r->headers_out, "Content-Type", >- ap_make_content_type(r, r->content_type)); >- } > } > sprintf(statusbuf,"%d", r->status); > buf = apr_pstrcat(r->pool, statusbuf, CRLF, NULL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30278
: 12339 |
12879