From: robertc <> Date: Thu, 23 Oct 2003 03:40:40 +0000 (+0000) Subject: only set the content offset on 206 - http partial content - replies. Bug 809 X-Git-Tag: SQUID_3_0_PRE4~1174 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=123516e5456575133130b3fc7ffeee91a8f58c88;p=thirdparty%2Fsquid.git only set the content offset on 206 - http partial content - replies. Bug 809 --- diff --git a/src/http.cc b/src/http.cc index c7612e0974..33ca9f6daa 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.428 2003/09/21 00:30:47 robertc Exp $ + * $Id: http.cc,v 1.429 2003/10/22 21:40:40 robertc Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -665,7 +665,8 @@ HttpStateData::processReplyHeader(const char *buf, int size) /* DO NOT USE reply now */ reply = NULL; - if (entry->getReply()->content_range) + if (entry->getReply()->sline.status == HTTP_PARTIAL_CONTENT && + entry->getReply()->content_range) currentOffset = entry->getReply()->content_range->spec.offset; storeTimestampsSet(entry);