httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: [PATCH] suppress last-modified on subrequests
Date Fri, 14 Dec 2001 17:49:16 GMT
On Fri, Dec 14, 2001 at 08:53:37AM -0800, Brian Pane wrote:
> 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);
> +    }
> }

You mean !r->main right?  assbackwards is for HTTP/0.9, IIRC.  
-- justin


Mime
View raw message