httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: Module Design Question
Date Wed, 01 Mar 2006 21:28:45 GMT
On Wednesday 01 March 2006 20:20, Joachim Zobel wrote:
> Am Mittwoch, den 01.03.2006, 19:19 +0000 schrieb Nick Kew:
> > Huh?  Of course you can - indeed sometimes must - manipulate headers
> > in a filter!  Just so long as you do so before passing anything down
> > the
> > chain.
> >
> > What are you trying to do that's a problem?
>
> The obvious test:
>
> static int xmlns_filter_init_test(ap_filter_t *f)
> {
>   ap_update_mtime(f->r, 1101151837);
>   ap_set_last_modified(f->r);
>
>   return OK;
> }
>

I've never tried it like that.  But you can use apr_date to compute
the date you want, then set it in r->headers_out.

-- 
Nick Kew

Mime
View raw message