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
6764fbb5
Commit
6764fbb5
authored
May 14, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new test-case.
parent
8b1f8991
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
e00029.vtc
bin/varnishtest/tests/e00029.vtc
+26
-0
g00002.vtc
bin/varnishtest/tests/g00002.vtc
+1
-0
No files found.
bin/varnishtest/tests/e00029.vtc
0 → 100644
View file @
6764fbb5
varnishtest "fun esi includes and ranges"
server s1 {
rxreq
txresp -body {
<html><esi:include
src=
"/bar"
/></html>
}
rxreq
expect req.url == /bar
txresp -body "ABCD"
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.url == "/bar") {
set req.http.Range = "bytes=1-2";
}
}
sub vcl_backend_response {
set beresp.do_esi = true;
}
} -start
client c1 {
txreq
rxresp
expect resp.body == "
<html>
BC
</html>
"
} -run
bin/varnishtest/tests/g00002.vtc
View file @
6764fbb5
...
...
@@ -42,6 +42,7 @@ client c1 {
rxresp
expect resp.http.content-encoding == <undef>
expect resp.bodylen == 4100
delay .1
# See varnish can gunzip it, inside ESI
txreq -url /bar -hdr "Accept-Encoding: null"
...
...
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