Commit cd5eb550 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make this test do a little bit more work than just not panic

parent b797261c
...@@ -6,14 +6,17 @@ server s1 { ...@@ -6,14 +6,17 @@ server s1 {
} -start } -start
varnish v1 -vcl+backend { varnish v1 -vcl+backend {
sub vcl_recv { sub vcl_deliver {
if (req.http.foo_bar == req.http.foo-bar) { if (req.http.foo_bar == req.http.foo-bar) {
set req.http.foo_bar = "xxx"; set resp.http.foo = "xxx";
} else {
set resp.http.foo = "yyy";
} }
} }
} -start } -start
client c1 { client c1 {
txreq txreq -hdr "foo_bar: 1" -hdr "foo-bar: 2"
rxresp rxresp
expect resp.http.foo == yyy
} -run } -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment