[master] 01379ca Regression-Test that vcc fails for $thing.http.$thing.http.$Header

Nils Goroll nils.goroll at uplex.de
Mon Feb 19 17:29:06 UTC 2018


commit 01379caf4dab6a4287e3915ddd9d92b6f2da1184
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Feb 19 18:24:41 2018 +0100

    Regression-Test that vcc fails for $thing.http.$thing.http.$Header
    
    Ref: #2573

diff --git a/bin/varnishtest/tests/v00019.vtc b/bin/varnishtest/tests/v00019.vtc
index c4bd725..f579b02 100644
--- a/bin/varnishtest/tests/v00019.vtc
+++ b/bin/varnishtest/tests/v00019.vtc
@@ -63,3 +63,10 @@ varnish v1 -errvcl {Comparison of different types: STRING '==' INT} {
 		}
 	}
 }
+
+varnish v1 -errvcl {Unknown variable: 'req.http.req.http.foo'} {
+	backend b { .host = "127.0.0.1"; }
+	sub vcl_recv {
+		set req.http.req.http.foo = "bar";
+	}
+}


More information about the varnish-commit mailing list