]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove header length from store reported offset before passing to clientStreams
authorrobertc <>
Tue, 24 Sep 2002 18:09:24 +0000 (18:09 +0000)
committerrobertc <>
Tue, 24 Sep 2002 18:09:24 +0000 (18:09 +0000)
src/client_side_reply.cc

index 44969f045119ec1c23245d1305f7a54391b6a8ad..ca6061a28e37c100efb9a188c264b38c87860310 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_reply.cc,v 1.7 2002/09/24 10:46:43 robertc Exp $
+ * $Id: client_side_reply.cc,v 1.8 2002/09/24 12:09:24 robertc Exp $
  *
  * DEBUG: section 88    Client-side Reply Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -1455,7 +1455,7 @@ clientSendMoreData(void *data, StoreIOBuffer result)
            context->flags.complete = 1;
        /* REMOVE ME: Only useful for two node streams */
        assert(result.offset - context->headers_sz == ((clientStreamNode *) http->client_stream.tail->data)->readBuffer.offset);
-       tempBuffer.offset = result.offset;
+       tempBuffer.offset = result.offset - context->headers_sz;
        tempBuffer.length = result.length;
        tempBuffer.data = buf;
        clientStreamCallback(http->client_stream.head->data, http, NULL,