[FASTCGI] Content-Length header should be set using ap_set_content_length

David Birnbaum davidb at pins.net
Wed Nov 5 09:41:30 EST 2008


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.
>


More information about the FastCGI-developers mailing list