Commit 4a75131d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add testcase for restart in vcl_miss{}

parent 3d52af78
varnishtest "test restart in miss"
server s1 {
rxreq
txresp -body "FOOBAR"
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.restarts > 0) {
unset req.http.foobar;
}
}
sub vcl_miss {
if (req.http.foobar) {
return (restart);
}
}
sub vcl_deliver {
set resp.http.restarts = req.restarts;
}
} -start
client c1 {
txreq -hdr "foobar: snafu"
rxresp
expect resp.http.restarts == 1
} -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