Hi,
sad fact is, that numerous (even bigger companies') webservers out there are broken and DO send excess data that differs from the Content-Length: specified in the header (mod_banner seems to be partially broken in this regard, too).
Squid does simply hard-cut the stream after the header-specified length, which is all good and well, in theory.
How about adding a configurable window, in which excess data is tolerated, but defaulting to 0 ? It is mostly around a couple of bytes (up to ~100?) and the browsers handle it, too.
I have no patches handy, unfortunately.
Kind regards, Ronny