From: wessels <> Date: Sat, 14 Dec 1996 03:33:41 +0000 (+0000) Subject: add set-cookie check X-Git-Tag: SQUID_3_0_PRE1~5303 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df3ac7c09dd3a8005e87dbc76fdca707d172a7ec;p=thirdparty%2Fsquid.git add set-cookie check --- diff --git a/src/http.cc b/src/http.cc index 5d656f740d..571feff186 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,5 +1,5 @@ /* - * $Id: http.cc,v 1.134 1996/12/06 21:52:01 wessels Exp $ + * $Id: http.cc,v 1.135 1996/12/13 20:33:41 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -140,7 +140,8 @@ enum { enum { HDR_IMS, HDR_HOST, - HDR_MAXAGE + HDR_MAXAGE, + HDR_SET_COOKIE }; char *HttpServerCCStr[] = @@ -347,6 +348,8 @@ httpParseReplyHeaders(const char *buf, struct _http_reply *reply) ReplyHeaderStats.cc[SCC_MAXAGE]++; } } + } else if (!strncasecmp(t, "Set-Cookie:", 11)) { + EBIT_SET(reply->misc_headers, HDR_SET_COOKIE); } } put_free_4k_page(headers); @@ -409,6 +412,8 @@ httpProcessReplyHeader(HttpStateData * httpState, const char *buf, int size) httpMakePrivate(entry); else if (EBIT_TEST(reply->cache_control, SCC_NOCACHE)) httpMakePrivate(entry); + else if (EBIT_TEST(reply->misc_headers, HDR_SET_COOKIE)) + httpMakePrivate(entry); else if (reply->date > -1) httpMakePublic(entry); else if (reply->last_modified > -1)