httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sorin Manolache <>
Subject Re: about setting r->headers_out
Date Wed, 29 Feb 2012 08:14:19 GMT
On 02/29/12 07:52, Rui Hu wrote:
> hi,
> I want to set "Content-Type" and "Cache-Control" fields in my private
> module. So I hooked fixups and used apr_table_setn to set
> r->headers_out but nothing happened. Was it thought through?
> Thanks for you help!

Try to set r->err_headers_out.

For content-type you could check the configuration directive DefaultType.

You could also set Cache-Control with the Headers directive. Check its 
"always" option too.

You can also combine the Headers directive with environment variables 
set in r->subprocess_env. Check


View raw message