From d9e8616c34e0df6757219cdcc72abbca2e2f7560 Mon Sep 17 00:00:00 2001 From: hno <> Date: Wed, 19 Sep 2001 01:04:28 +0000 Subject: [PATCH] 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). --- src/http.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.47.2