[4.0] c67aa08 Try again to make server.hostname and server.identity available in all VCL_methods.

Lasse Karstensen lkarsten at varnish-software.com
Mon Sep 22 16:38:26 CEST 2014


commit c67aa085f0650d4fce443e71d80d6dff10fab6ee
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Sep 19 16:11:24 2014 +0000

    Try again to make server.hostname and server.identity available
    in all VCL_methods.
    
    Apologies for the previous breakage.

diff --git a/bin/varnishtest/tests/v00001.vtc b/bin/varnishtest/tests/v00001.vtc
index 1798ec9..822c847 100644
--- a/bin/varnishtest/tests/v00001.vtc
+++ b/bin/varnishtest/tests/v00001.vtc
@@ -32,6 +32,8 @@ varnish v1 -vcl+backend {
 		set beresp.proto = "HTTP/1.2";
 		set beresp.reason = "For circular files";
 		set beresp.status = 903;
+		set beresp.http.y-served-by-hostname = server.hostname;
+		set beresp.http.y-served-by-identity = server.identity;
 	}
 	sub vcl_deliver {
 		set resp.proto = "HTTP/1.2";



More information about the varnish-commit mailing list