Geoffrey Young wrote:

Boris Zentner wrote:

Hi,

I have a handler, that serve dynamic pages or static ones. If the handler gets a HEAD request, it answers with
[...]
it is desired - you no longer need to set the Content-Length header for
requests in Apache 2.0.

It's somewhat documented: http://perl.apache.org/docs/2.0/user/handlers/http.html#Handling_HEAD_Requests

basically, any C-L header you set in the content-generation phase of the
request has the potential to be incorrect, since any filter can come along
and alter the content.  so, what apache does is it runs the new
content-length filter, which will decide whether a C-L header is required
and take appropriate steps.  for instance, apache will abandon the C-L
header if it decides it can use a chunked transfer encoding instead.

Geoff, feel free to improve that section to be more complete. Thanks.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to