From: wessels <> Date: Tue, 11 Nov 1997 04:32:00 +0000 (+0000) Subject: OOF! Somehow this bit of logic got lost which releases objects X-Git-Tag: SQUID_3_0_PRE1~4553 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fee0cebbdb92c02f352fe6f7e588332ff6214c23;p=thirdparty%2Fsquid.git OOF! Somehow this bit of logic got lost which releases objects if the request had an Authorization header, but the reply did NOT have a Proxy-Revalidate header. --- diff --git a/src/http.cc b/src/http.cc index e8b0d132f8..cbc8030191 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.218 1997/11/06 18:29:31 wessels Exp $ + * $Id: http.cc,v 1.219 1997/11/10 21:32:00 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -427,6 +427,9 @@ httpCachableReply(HttpStateData * httpState) return 0; if (EBIT_TEST(reply->cache_control, SCC_NOCACHE)) return 0; + if (BIT_TEST(httpState->request->flags, REQ_AUTH)) + if (!EBIT_TEST(reply->cache_control, SCC_PROXYREVALIDATE)) + return 0; /* * Dealing with cookies is quite a bit more complicated * than this. Ideally we should strip the cookie