]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugfix: Vary failed to calculate the variance when going thru a parent.
authorhno <>
Wed, 19 Sep 2001 01:04:28 +0000 (01:04 +0000)
committerhno <>
Wed, 19 Sep 2001 01:04:28 +0000 (01:04 +0000)
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).

src/http.cc

index a977b6d7dcab44f2892fb255ace95295bd46b721..6935ca923bcf0888346a6d9470c716f1709f4faa 100644 (file)
@@ -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 */