From: robertc <> Date: Sat, 24 May 2003 18:09:03 +0000 (+0000) Subject: Summary: Fix bug #632 (Range reply Status code) X-Git-Tag: SQUID_3_0_PRE1~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cff087f67788bd91e4505438165e4e5abdad117;p=thirdparty%2Fsquid.git Summary: Fix bug #632 (Range reply Status code) Keywords: We need to set the reply status code to Partial content if we are generating a range reply.. --- diff --git a/src/client_side.cc b/src/client_side.cc index a54e1b3940..81a8cd1700 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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;