]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
only set the content offset on 206 - http partial content - replies. Bug 809
authorrobertc <>
Thu, 23 Oct 2003 03:40:40 +0000 (03:40 +0000)
committerrobertc <>
Thu, 23 Oct 2003 03:40:40 +0000 (03:40 +0000)
src/http.cc

index c7612e0974835a84f83a28717bdf677b24f30c80..33ca9f6daa9688a5d53b0c82edd93dfcd53c782a 100644 (file)
@@ -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);