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
6c4f5f87
Commit
6c4f5f87
authored
May 06, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use error in vcl_backend_response{}
parent
0e967d6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
b00018.vtc
bin/varnishtest/tests/b00018.vtc
+8
-2
No files found.
bin/varnishtest/tests/b00018.vtc
View file @
6c4f5f87
varnishtest "Check that
error
in vcl_backend_response works"
varnishtest "Check that
synth response
in vcl_backend_response works"
server s1 {
rxreq
...
...
@@ -8,7 +8,11 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_backend_response {
set beresp.http.Foo = "bar";
error 523 "not ok";
set beresp.status = 523;
set beresp.response = "not ok";
set beresp.uncacheable = true;
set beresp.ttl = 0s;
return (deliver);
}
} -start
...
...
@@ -18,4 +22,6 @@ client c1 {
expect resp.status == 523
} -run
delay 10
varnish v1 -expect n_object == 0
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