From: hno <> Date: Fri, 17 Aug 2007 09:45:56 +0000 (+0000) Subject: Bug #2003: 'via' config directive doesn't affect response headers X-Git-Tag: SQUID_3_0_PRE7~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92caea7774aa4fec82b700a27a408eb08210b646;p=thirdparty%2Fsquid.git Bug #2003: 'via' config directive doesn't affect response headers this patch makes the Via response header addition conditional based on the via config directive --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index b00d075b6f..4d172c8e98 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -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);