Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
3592eeda
Commit
3592eeda
authored
May 07, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Aim the axe at vcl_pass{}
parent
6ed1b68b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
b00035.vtc
bin/varnishtest/tests/b00035.vtc
+1
-1
r00965.vtc
bin/varnishtest/tests/r00965.vtc
+3
-2
v00018.vtc
bin/varnishtest/tests/v00018.vtc
+1
-1
No files found.
bin/varnishtest/tests/b00035.vtc
View file @
3592eeda
...
...
@@ -14,7 +14,7 @@ varnish v1 -vcl+backend {
return (pass);
}
sub vcl_
pass
{
sub vcl_
backend_fetch
{
set bereq.method = bereq.request + "C";
set bereq.request = bereq.method + "D";
}
...
...
bin/varnishtest/tests/r00965.vtc
View file @
3592eeda
...
...
@@ -7,8 +7,9 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.http.X-Banned == "check") { remove req.http.X-Banned; }
elseif (req.restarts == 0) {
if (req.http.X-Banned == "check") {
remove req.http.X-Banned;
} elseif (req.restarts == 0) {
set req.http.X-Banned = "check";
if (req.http.x-pass) {
return (pass);
...
...
bin/varnishtest/tests/v00018.vtc
View file @
3592eeda
...
...
@@ -14,7 +14,7 @@ varnish v1 -vcl {
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_miss { error 100 req.url ; }
sub vcl_
pass
{ error 100 "the butter please" ; }
sub vcl_
lookup
{ error 100 "the butter please" ; }
sub vcl_backend_response { error beresp.status req.url; }
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment