]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add comment explaining cause of asserts in stmem.cc
authorrobertc <>
Tue, 21 Oct 2003 15:30:09 +0000 (15:30 +0000)
committerrobertc <>
Tue, 21 Oct 2003 15:30:09 +0000 (15:30 +0000)
src/client_side.cc

index 8069e107c5fe96d2a327cbe73a94e22ee9e32c93..ae79b4f8cadf59549b61aba799cb44a147fe68e5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.664 2003/10/21 09:22:59 robertc Exp $
+ * $Id: client_side.cc,v 1.665 2003/10/21 09:30:09 robertc Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1082,7 +1082,11 @@ ClientSocketContext::buildRangeHeader(HttpReply * rep)
 #endif
     /* get rid of our range specs on error */
     if (range_err) {
-        /* XXX Why do we do this here, and not when parsing the request ? */
+        /* XXX We do this here because we need canonisation etc. However, this current
+         * code will lead to incorrect store offset requests - the store will have the 
+         * offset data, but we won't be requesting it.
+         * So, we can either re-request, or generate an error
+         */
         debug(33, 3) ("clientBuildRangeHeader: will not do ranges: %s.\n", range_err);
         delete http->request->range;
         http->request->range = NULL;