From 83d453f3c8ecd2b7724ca6545ee7e0cf49bf8463 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 18 Oct 1997 13:20:57 +0000 Subject: [PATCH] bug in storeCheckCachable(): only check content length if STORE_OK --- src/store.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store.cc b/src/store.cc index 1a25a2b55b..200e70acfc 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.294 1997/10/17 23:57:41 wessels Exp $ + * $Id: store.cc,v 1.295 1997/10/18 07:20:57 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -1496,7 +1496,7 @@ storeCheckCachable(StoreEntry * e) debug(20, 2) ("storeCheckCachable: NO: not cachable\n"); } else if (BIT_TEST(e->flag, RELEASE_REQUEST)) { debug(20, 2) ("storeCheckCachable: NO: release requested\n"); - } else if (!storeEntryValidLength(e)) { + } else if (e->store_status == STORE_OK && !storeEntryValidLength(e)) { debug(20, 2) ("storeCheckCachable: NO: wrong content-length\n"); } else if (BIT_TEST(e->flag, ENTRY_NEGCACHED)) { debug(20, 2) ("storeCheckCachable: NO: negative cached\n"); -- 2.47.2