httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julio Carlos Barrera Juez <>
Subject Re: about setting r->headers_out
Date Thu, 10 May 2012 11:19:14 GMT
It worked for me! Thank you very much! I don't know why, but I was
thinking this method changes the request "Content-Type", not the
response one (it has no sense at all, sorry).

Thank you very much Daniel! You solved my issue in 5 secs!

Regards, Juilo.

On 10 May 2012 12:36, Daniel Gruno <> wrote:
> On 10-05-2012 12:25, Julio Carlos Barrera Juez wrote:
>> Hi!
>> I have the same problem than you, Rui Hu. I have an output filter that
>> changes the body of the response, but then "content-type" header is
>> changed to "text/plain", and I want to maintain the original
>> "text/html".
>> I have tried to use:
>> apr_table_set(r->headers_out, "Content-Type", "text/html");
>> but it doesn't work.
>> Can you show me what is your solution "hook handler"? I have only an
>> input filter and an output filter in my module. I only change the
>> request_rec filename to use other file on disk.
> Have you tried using ap_set_content_type(r, "text/html") instead?
> I noticed that in its description, it says:
> "This function must be called to set r->content_type in order for the
> AddOutputFilterByType directive to work correctly.", so it may be
> related to your problem.
> With regards,
> Daniel.

View raw message