[master] 467f45d Don't mess with req.* in vcl_backend_response{}

Poul-Henning Kamp phk at varnish-cache.org
Sat May 4 14:45:28 CEST 2013


commit 467f45d6cb24d0723fffdd5c79de1dd3c1605717
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat May 4 12:45:00 2013 +0000

    Don't mess with req.* in vcl_backend_response{}

diff --git a/bin/varnishtest/tests/v00025.vtc b/bin/varnishtest/tests/v00025.vtc
index dd3a303..26f3384 100644
--- a/bin/varnishtest/tests/v00025.vtc
+++ b/bin/varnishtest/tests/v00025.vtc
@@ -17,10 +17,7 @@ sub vcl_deliver {
 }
 
 sub vcl_backend_response {
-	if (req.esi) {
-		set beresp.http.esi = "yes";
-	}
-	set beresp.http.backend = req.backend;
+	set beresp.http.backend = bereq.backend;
 	if (beresp.ttl > 3 s) {
 		set beresp.http.ttl = "long";
 	} else {



More information about the varnish-commit mailing list