httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <>
Subject Re: cvs commit: apache-2.0/src/main http_protocol.c
Date Tue, 14 Nov 2000 07:49:49 GMT
On Mon, 13 Nov 2000 22:45:56 -0800 (PST), wrote:

>Roy,  I know what is happening, and I am 99% sure it is wrong, but I want
>you to double check me.  Basically, if we make a HEAD request and we don't
>send any data down the filter, then we get a 0 C-L.  The reason is simple,
>the C-L filter sees that we have an EOS at the end of the brigade, and it
>figures it can compute the content-length, so it sets it to 0.
>Unfortunately, the Spec seems to say that a C-L on a HEAD response must be
>the length of the actual data.  This problem is solved if the handlers
>stop trying to deal with HEAD requests, but that also slows us down when
>we try to serve HEAD requests.  
>I don't have a great answer for the problem yet, but am  I correct in how
>I read the Spec?

What about a HEAD on an SSI? If you don't send the data through the filters
you can't know what the length of the data after SSI parsing is.

 |  Brian Havard                 |  "He is not the messiah!                   |
 |  |  He's a very naughty boy!" - Life of Brian |

View raw message