Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Commits

r317 - trunk/varnish-cache/bin/varnishd

 

 

Varnish commits RSS feed   Index | Next | Previous | View Threaded


phk at projects

Jul 5, 2006, 2:59 AM

Post #1 of 1 (3 views)
Permalink
r317 - trunk/varnish-cache/bin/varnishd

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));

Varnish commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.