Index: src/http.c =================================================================== RCS file: /squid/squid/src/http.c,v retrieving revision 1.459 diff -u -r1.459 http.c --- src/http.c 17 Jun 2010 02:15:45 -0000 1.459 +++ src/http.c 10 Apr 2012 10:43:40 -0000 @@ -1429,6 +1429,12 @@ if (flags.front_end_https == 1 || request->protocol == PROTO_HTTPS) httpHeaderPutStr(hdr_out, HDR_FRONT_END_HTTPS, "On"); } + + header_mangler *hm; + hm = &Config.header_access[HDR_USER_AGENT]; + if (!httpHeaderHas(hdr_out, HDR_USER_AGENT)) { + httpHeaderPutStr(hdr_out, HDR_USER_AGENT,hm->replacement ); + } /* Now mangle the headers. */ httpHdrMangleList(hdr_out, orig_request); stringClean(&strConnection);