This is what I'm planning to commit next week to keep
mod_include subrequests from generating a last-modified
timestamp. But if anybody has major objections (e.g.,
because this will clash with other subrequest handling
changes in progress), please let me know.
Thanks,
--Brian
Index: server/protocol.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
retrieving revision 1.61
diff -u -r1.61 protocol.c
--- server/protocol.c 2001/12/13 16:41:43 1.61
+++ server/protocol.c 2001/12/14 16:44:23
@@ -1267,10 +1267,14 @@
*/
AP_DECLARE(void) ap_set_last_modified(request_rec *r)
{
- apr_time_t mod_time = ap_rationalize_mtime(r, r->mtime);
- char *datestr = apr_palloc(r->pool, APR_RFC822_DATE_LEN);
- apr_rfc822_date(datestr, mod_time);
- apr_table_setn(r->headers_out, "Last-Modified", datestr);
+ apr_time_t mod_time;
+ char *datestr;
+ if (!r->assbackwards) {
+ mod_time = ap_rationalize_mtime(r, r->mtime);
+ datestr = apr_palloc(r->pool, APR_RFC822_DATE_LEN);
+ apr_rfc822_date(datestr, mod_time);
+ apr_table_setn(r->headers_out, "Last-Modified", datestr);
+ }
}
AP_IMPLEMENT_HOOK_RUN_ALL(int,post_read_request,