--------------------- PatchSet 11572 Date: 2007/08/17 03:46:10 Author: hno Branch: HEAD Tag: (none) Log: 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 Members: src/client_side.c:1.732->1.733 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid/squid/src/client_side.c,v retrieving revision 1.732 retrieving revision 1.733 diff -u -r1.732 -r1.733 --- squid/src/client_side.c 15 Aug 2007 01:54:56 -0000 1.732 +++ squid/src/client_side.c 17 Aug 2007 03:46:10 -0000 1.733 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.732 2007/08/15 01:54:56 hno Exp $ + * $Id: client_side.c,v 1.733 2007/08/17 03:46:10 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1994,7 +1994,7 @@ request->flags.proxy_keepalive = 0; } /* Append Via */ - { + if (Config.onoff.via) { LOCAL_ARRAY(char, bbuf, MAX_URL + 32); String strVia = httpHeaderGetList(hdr, HDR_VIA); snprintf(bbuf, MAX_URL + 32, "%d.%d %s",