Re: Content-Length header should be set using ap_set_content_length

David Birnbaum <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Artur,

Thanks for the patches - we'll take a peek and see about rolling them into the 
current SNAP before cutting a new version.

David.

-----

On Tue, 4 Nov 2008, Artur ZaprzaÂła wrote:

> Content-Length header should be set using ap_set_content_length() function in 
> process_headers(). I fixed this about 3 years ago and I don't remember what 
> was the problem with the current aproach, but it surely was.
>
> Today I did some research to support my fix.
>
> Currently process_headers() adds Content-Length to err_headers_out. Here is 
> description of err_headers_out from Apache documentation:
>> The difference between headers_out and err_headers_out is that the latter 
>> are printed even on error, and persist across internal redirects (so the 
>> headers printed for ErrorDocument handlers will have them).
>
> And Content-Length shouldn't persist across internal redirects.
>

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.