Commit f4e2634a authored by Kristian Lyngstøl's avatar Kristian Lyngstøl

Update vcl(7) for 2.1: return(foo) is mandatory.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5067 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e3d02c13
......@@ -229,7 +229,7 @@ enclosed in parentheses, however, it will simply be ignored.
To match an IP address against an ACL, simply use the match operator:::
if (client.ip ~ local) {
pipe;
return (pipe);
}
Grace
......@@ -276,7 +276,7 @@ A subroutine is used to group code for legibility or reusability:::
sub pipe_if_local {
if (client.ip ~ local) {
pipe;
return (pipe);
}
}
......@@ -660,13 +660,13 @@ documents even when cookies are present:::
sub vcl_recv {
if (req.request == "GET" && req.http.cookie) {
call(lookup);
return(lookup);
}
}
sub vcl_fetch {
if (beresp.http.Set-Cookie) {
deliver;
return(deliver);
}
}
......@@ -683,7 +683,7 @@ for object invalidation:::
if (!client.ip ~ purge) {
error 405 "Not allowed.";
}
lookup;
return(lookup);
}
}
......
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