From: rousskov <> Date: Thu, 16 Jul 1998 06:18:52 +0000 (+0000) Subject: - for multipart byterange responses we should not send Content-Length X-Git-Tag: SQUID_3_0_PRE1~3076 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cded937df38198bab9d38110edba9046b33aae2f;p=thirdparty%2Fsquid.git - for multipart byterange responses we should not send Content-Length until we can calculate it. --- diff --git a/TODO b/TODO index a1413f105b..14670ba94c 100644 --- a/TODO +++ b/TODO @@ -15,6 +15,7 @@ Our Todo List - An orderd list of siblings to try. - Hash function load balancing (2) Track cache keys (MD5) in memory utilization +(2) Calculate Content-Length for multipart range replies (AR) (3) hit metering (3) ETag support (makes metadata bigger--ack!) diff --git a/src/client_side.cc b/src/client_side.cc index bb3fd86a6d..29c618bc1a 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.351 1998/07/15 23:59:07 wessels Exp $ + * $Id: client_side.cc,v 1.352 1998/07/16 00:18:52 rousskov Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1016,6 +1016,9 @@ clientBuildRangeHeader(clientHttpRequest * http, HttpReply * rep) "multipart/byteranges; boundary=\"%s\"", strBuf(http->range_iter.boundary)); /* no need for Content-Length in multipart responses */ + /* but we must delete the original one if we cannot (yet) + * calculate the actual length */ + httpHeaderDelById(hdr, HDR_CONTENT_LENGTH); } } }