]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Fix bug #632 (Range reply Status code)
authorrobertc <>
Sat, 24 May 2003 18:09:03 +0000 (18:09 +0000)
committerrobertc <>
Sat, 24 May 2003 18:09:03 +0000 (18:09 +0000)
Keywords:

We need to set the reply status code to Partial content if we are generating a range reply..

src/client_side.cc

index a54e1b3940c26829be71f3f59038f9932810c9a8..81a8cd170028ed17f5033be5b1e944e03fe64528 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.636 2003/05/19 22:35:28 robertc Exp $
+ * $Id: client_side.cc,v 1.637 2003/05/24 12:09:03 robertc Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1067,6 +1067,9 @@ ClientSocketContext::buildRangeHeader(HttpReply * rep)
         http->request->range->deleteSelf();
         http->request->range = NULL;
     } else {
+        /* XXX: TODO: Review, this unconditional set may be wrong. - TODO: review. */
+        httpStatusLineSet(&rep->sline, rep->sline.version,
+                          HTTP_PARTIAL_CONTENT, NULL);
         const int spec_count = http->request->range->specs.count;
         int actual_clen = -1;