From 02941a5dcd5792de2ecfa2d72ab31c908ec00f28 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 20 Feb 1998 06:07:36 +0000 Subject: [PATCH] Add 'from hostname' on X-Cache reply header line --- src/client_side.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)) { -- 2.47.3