]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed looping for cache hits on HEAD requests
authorwessels <>
Thu, 8 Jan 1998 06:15:23 +0000 (06:15 +0000)
committerwessels <>
Thu, 8 Jan 1998 06:15:23 +0000 (06:15 +0000)
src/client_side.cc

index 6d75da67ee499ecd8f3dc7beb302183392753a36..e395837fbbcdaca6ae4d2c713e8cd8902fc6b691 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.194 1998/01/07 22:46:11 wessels Exp $
+ * $Id: client_side.cc,v 1.195 1998/01/07 23:15:23 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -942,7 +942,10 @@ clientSendMoreData(void *data, char *buf, ssize_t size)
            *p = '\0';
            writelen = p - buf;
            /* force end */
-           http->out.offset = entry->mem_obj->inmem_hi;
+           if (entry->store_status == STORE_PENDING)
+               http->out.offset = entry->mem_obj->inmem_hi;
+           else
+               http->out.offset = entry->object_len;
        }
     }
     comm_write(fd, buf, writelen, clientWriteComplete, http, freefunc);