git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3846
d4fa192b-c00b-0410-8231-
f00ffab90ce4
} -start
varnish v1 -vcl+backend {
-
- sub vcl_fetch {
- purge_url("^/$");
+ sub vcl_recv {
+ if (req.request == "PURGE") {
+ purge_url("^/$");
+ error 209 "foo";
+ }
}
} -start
txreq
rxresp
expect resp.http.X-Varnish == "1001"
+} -run
- txreq
+client c1 {
+ txreq -req "PURGE"
rxresp
expect resp.http.X-Varnish == "1002"
+ expect resp.status == 209
+} -run
-} -start
+client c1 {
+ txreq
+ rxresp
+ expect resp.http.X-Varnish == "1003"
+
+} -run