--------------------- PatchSet 11600 Date: 2007/08/31 13:45:12 Author: hno Branch: SQUID_2_6 Tag: (none) Log: MFC: 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 Merged changes: 2007/08/17 03:46:10 hno +2 -2 Bug #2003: 'via' config directive doesn't affect response headers Members: src/client_side.c:1.693.2.15->1.693.2.16 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid/squid/src/client_side.c,v retrieving revision 1.693.2.15 retrieving revision 1.693.2.16 diff -u -r1.693.2.15 -r1.693.2.16 --- squid/src/client_side.c 31 Aug 2007 13:44:00 -0000 1.693.2.15 +++ squid/src/client_side.c 31 Aug 2007 13:45:12 -0000 1.693.2.16 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.693.2.15 2007/08/31 13:44:00 hno Exp $ + * $Id: client_side.c,v 1.693.2.16 2007/08/31 13:45:12 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1990,7 +1990,7 @@ request->flags.proxy_keepalive = 0; } /* Append Via */ - { + if (Config.onoff.via) { char bbuf[MAX_URL + 32]; String strVia = httpHeaderGetList(hdr, HDR_VIA); snprintf(bbuf, MAX_URL + 32, "%d.%d %s",