From: hno <> Date: Wed, 19 Sep 2001 01:04:28 +0000 (+0000) Subject: Bugfix: Vary failed to calculate the variance when going thru a parent. X-Git-Tag: SQUID_3_0_PRE1~1395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9e8616c34e0df6757219cdcc72abbca2e2f7560;p=thirdparty%2Fsquid.git Bugfix: Vary failed to calculate the variance when going thru a parent. I obviously never learn to use httpState->orig_request when accessing client data. Not the first time I have been bitten by httpState->request being a bogus request missing most of the vital information when using a peer proxy (only contains the request line, and how to contact the peer). --- diff --git a/src/http.cc b/src/http.cc index a977b6d7dc..6935ca923b 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.381 2001/07/11 22:57:54 wessels Exp $ + * $Id: http.cc,v 1.382 2001/09/18 19:04:28 hno Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -436,7 +436,7 @@ httpProcessReplyHeader(HttpStateData * httpState, const char *buf, int size) || httpHeaderHas(&reply->header, HDR_X_ACCELERATOR_VARY) #endif ) { - const char *vary = httpMakeVaryMark(httpState->request, reply); + const char *vary = httpMakeVaryMark(httpState->orig_request, reply); if (vary) { entry->mem_obj->vary_headers = xstrdup(vary); /* Kill the old base object if a change in variance is detected */