From 4dba9e95ab19de87df8127d01b3ae4529927538b Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 5 Jul 2006 09:59:33 +0000 Subject: [PATCH] Create an X-Varnish header and put the XID there. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@317 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_acceptor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/varnish-cache/bin/varnishd/cache_acceptor.c b/varnish-cache/bin/varnishd/cache_acceptor.c index 08f223ad..4abb1480 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor.c +++ b/varnish-cache/bin/varnishd/cache_acceptor.c @@ -101,6 +101,7 @@ vca_write_obj(struct worker *w, struct sess *sp) sbuf_printf(w->sb, "Age: %u\r\n", sp->obj->age + sp->t_req - sp->obj->entered); sbuf_printf(w->sb, "Via: 1.1 varnish\r\n"); + sbuf_printf(w->sb, "X-Varnish: xid %u\r\n", sp->obj->xid); sbuf_printf(w->sb, "\r\n"); sbuf_finish(w->sb); vca_write(sp, sbuf_data(w->sb), sbuf_len(w->sb)); -- 2.39.5