[4.0] f89015a Add major version in Via header
Lasse Karstensen
lkarsten at varnish-software.com
Tue Apr 1 15:09:50 CEST 2014
commit f89015acfc28b6fe301b22a56174e9b85785d29a
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Tue Mar 18 16:12:22 2014 +0100
Add major version in Via header
To help track our adoption rate of the new Varnish versions, add the major
version in the default Via header added by us.
diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index 792b1ec..6650c31 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -123,7 +123,7 @@ cnt_deliver(struct worker *wrk, struct req *req)
http_PrintfHeader(req->resp, "Age: %.0f",
req->t_resp - req->obj->exp.t_origin);
- http_SetHeader(req->resp, "Via: 1.1 varnish");
+ http_SetHeader(req->resp, "Via: 1.1 varnish (v4)");
if (cache_param->http_gzip_support && req->obj->gziped &&
!RFC2616_Req_Gzip(req->http))
More information about the varnish-commit
mailing list