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
fc53691e
Commit
fc53691e
authored
May 14, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make this test-case even more strange.
parent
3341de57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
e00029.vtc
bin/varnishtest/tests/e00029.vtc
+19
-3
No files found.
bin/varnishtest/tests/e00029.vtc
View file @
fc53691e
...
...
@@ -2,16 +2,27 @@ varnishtest "fun esi includes and ranges"
server s1 {
rxreq
expect req.url == "/1"
txresp -body {
<html><esi:include
src=
"/bar"
/></html>
}
rxreq
expect req.url == /bar
txresp -body {
<html><esi:include
src=
"/foo"
/></html>
}
rxreq
expect req.url == /foo
txresp -body "ABCD"
rxreq
expect req.url == "/2"
txresp -gzipbody {
<html><esi:include
src=
"/bar"
/></html>
}
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.url == "/bar") {
set req.http.Range = "bytes=
1-2
";
set req.http.Range = "bytes=
7-8
";
}
}
sub vcl_backend_response {
...
...
@@ -20,7 +31,12 @@ varnish v1 -vcl+backend {
} -start
client c1 {
txreq
txreq -url /1 -hdr "Accept-encoding: gzip"
rxresp
expect resp.body == "
<html>
BC
</html>
"
delay .1
txreq -url /2 -hdr "Accept-encoding: gzip"
rxresp
gunzip
expect resp.body == "
<html>
BC
</html>
"
} -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