Adjust to range filter improvements in Varnish-Cache

Ref: 7da66c9b03f82b97e2476d5d0af62e58e0419216
parent 32532a98
......@@ -94,8 +94,6 @@ varnish v1 -syntax 4.1 -vcl+backend {
}
}
# Note on Range requests: The range VDP is active, but as it cannot
# reliably determine the size of the response, it falls back to a 200
client c1 {
txreq -url /top2
rxresp
......@@ -111,11 +109,10 @@ client c1 {
expect resp.http.was == true
expect resp.http.filters == "pesi"
# see Note on Range above
txreq -url "/esi" -hdr "Range: bytes=1-2"
rxresp
expect resp.bodylen == 76
expect resp.status == 200
expect resp.bodylen == 2
expect resp.status == 206
expect resp.http.was == true
expect resp.http.filters == "pesi range"
......@@ -126,11 +123,10 @@ client c1 {
expect resp.http.was == true
expect resp.http.filters == "pesi gunzip"
# see Note on Range above
txreq -url "/recurse" -hdr "Range: bytes=1-2"
rxresp
expect resp.bodylen == 120
expect resp.status == 200
expect resp.bodylen == 2
expect resp.status == 206
expect resp.http.was == true
expect resp.http.filters == "pesi gunzip range"
} -run
......
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