]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2003: 'via' config directive doesn't affect response headers
authorhno <>
Fri, 17 Aug 2007 09:45:56 +0000 (09:45 +0000)
committerhno <>
Fri, 17 Aug 2007 09:45:56 +0000 (09:45 +0000)
this patch makes the Via response header addition conditional based
on the via config directive

src/client_side_reply.cc

index b00d075b6fc10e171aa683306470ff0c6e8b83ef..4d172c8e984a8d57acb036a3b2c2df69471aae28 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_reply.cc,v 1.133 2007/08/14 11:06:18 amosjeffries Exp $
+ * $Id: client_side_reply.cc,v 1.134 2007/08/17 03:45:56 hno Exp $
  *
  * DEBUG: section 88    Client-side Reply Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -1320,7 +1320,7 @@ clientReplyContext::buildReplyHeader()
         request->flags.proxy_keepalive = 0;
 
     /* Append VIA */
-    {
+    if (Config.onoff.via) {
         LOCAL_ARRAY(char, bbuf, MAX_URL + 32);
         String strVia;
                hdr->getList(HDR_VIA, &strVia);