vtest "multi element ban"

server s1 {
	rxreq
	txresp -hdr "foo: bar1" -body "1"
	rxreq
	txresp -hdr "foo: bar2" -body "22"
} -start

vinyl v1 -vcl+backend {
	import std;

	sub vcl_recv {
		std.ban("req.url == / && obj.http.foo ~ bar1");
	}
} -start

client c1 {
	txreq
	rxresp
	expect resp.http.foo == "bar1"
	txreq
	rxresp
	expect resp.http.foo == "bar2"
	txreq
	rxresp
	expect resp.http.foo == "bar2"
} -run

vinyl v1 -cliok ban.list
