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
73817d4c
Commit
73817d4c
authored
Aug 03, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add forgotten test-case
parent
fc5b4732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
r01761.vtc
bin/varnishtest/tests/r01761.vtc
+33
-0
No files found.
bin/varnishtest/tests/r01761.vtc
0 → 100644
View file @
73817d4c
varnishtest "204 response with body"
server s1 {
rxreq
txresp -status 204 -body "HiHo"
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
if (beresp.http.foo == "bar") {
set beresp.status = 204;
}
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 503
} -run
server s1 {
rxreq
txresp -hdr "Foo: bar" -body "HiHo"
} -start
client c1 {
txreq -url /2
rxresp
expect resp.status == 204
expect resp.http.content-length == "<undef>"
expect resp.http.transfer-encoding == "<undef>"
} -run
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