Re: rep_mime_type bugfix

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 14 Feb 2001 20:43:40 +0100

Exacly. Please note that I did not say anything about content-length. I
said entity.

I guess what I am actually objecting to is the function name
clientAlwaysAllowResponse. The purpose of this function is to determine
if the reply has a entity or not.

(sidenote: HEAD replies have a entity but no entity body)

/Henrik

Robert Collins wrote:

> Yes. And they are:
> Responses 1xx, 204 & 304 never have entity bodies. (tested for now).
> Other responses have entity bodies, but they may be of zero length. (harder to test reliably)
>
> Case in point:
> A dynamic cgi script typically doesn't set the content-length (unknown when it starts). So we have no content-length header.
>
> Consider the following state in squid:
> we've processed the headers, there's no more data waiting to be processed until another network read occurs, and there is no
> content-length header, and no body content as yet...
>
> at this point we simply do not know whether to expect a non-zero entity length.
>
> Rob
Received on Wed Feb 14 2001 - 12:46:41 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:30 MST