From: wessels <> Date: Thu, 8 Jan 1998 06:15:23 +0000 (+0000) Subject: Fixed looping for cache hits on HEAD requests X-Git-Tag: SQUID_3_0_PRE1~4225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f68b5d813003148aa0f5115976c4f478c96d169b;p=thirdparty%2Fsquid.git Fixed looping for cache hits on HEAD requests --- diff --git a/src/client_side.cc b/src/client_side.cc index 6d75da67ee..e395837fbb 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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);