Commit 6764fbb5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a new test-case.

parent 8b1f8991
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
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment