From: wessels <> Date: Fri, 20 Feb 1998 06:07:36 +0000 (+0000) Subject: Add 'from hostname' on X-Cache reply header line X-Git-Tag: SQUID_3_0_PRE1~4059 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02941a5dcd5792de2ecfa2d72ab31c908ec00f28;p=thirdparty%2Fsquid.git Add 'from hostname' on X-Cache reply header line --- diff --git a/src/client_side.cc b/src/client_side.cc index 285f21e4d9..feec850bea 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.210 1998/02/18 22:31:31 wessels Exp $ + * $Id: client_side.cc,v 1.211 1998/02/19 23:07:36 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -842,7 +842,9 @@ clientBuildReplyHeader(clientHttpRequest * http, } hdr_len = end - hdr_in; /* Append X-Cache: */ - snprintf(ybuf, 4096, "X-Cache: %s", isTcpHit(http->log_type) ? "HIT" : "MISS"); + snprintf(ybuf, 4096, "X-Cache: %s from %s", + isTcpHit(http->log_type) ? "HIT" : "MISS", + getMyHostname()); clientAppendReplyHeader(hdr_out, ybuf, &len, out_sz); /* Append Proxy-Connection: */ if (EBIT_TEST(http->request->flags, REQ_PROXY_KEEPALIVE)) {