r317 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Jul 5 11:59:33 CEST 2006


Author: phk
Date: 2006-07-05 11:59:33 +0200 (Wed, 05 Jul 2006)
New Revision: 317

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor.c
Log:
Create an X-Varnish header and put the XID there.


Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-07-05 09:56:35 UTC (rev 316)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-07-05 09:59:33 UTC (rev 317)
@@ -101,6 +101,7 @@
 	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));




More information about the varnish-commit mailing list