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

A little bit more coverage of vcc_expr.c

parent db72da16
...@@ -42,7 +42,7 @@ varnish v1 -badvcl { ...@@ -42,7 +42,7 @@ varnish v1 -badvcl {
varnish v1 -badvcl { varnish v1 -badvcl {
sub vcl_recv { sub vcl_recv {
if (req.grace < 3s || req.grace) { if (req.grace < -3s || req.grace) {
set req.http.foo = vcl_recv; set req.http.foo = vcl_recv;
} }
} }
...@@ -67,3 +67,17 @@ varnish v1 -badvcl { ...@@ -67,3 +67,17 @@ varnish v1 -badvcl {
set req.http.foo = req.grace + beresp.status; set req.http.foo = req.grace + beresp.status;
} }
} }
varnish v1 -badvcl {
sub vcl_fetch {
if (! req.grace) {
}
}
}
varnish v1 -badvcl {
sub vcl_fetch {
if (beresp.do_gzip + beresp.do_gunzip) {
}
}
}
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