Adjust to range filter improvements in Varnish-Cache

Ref: 7da66c9b03f82b97e2476d5d0af62e58e0419216
parent 32532a98
...@@ -94,8 +94,6 @@ varnish v1 -syntax 4.1 -vcl+backend { ...@@ -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 { client c1 {
txreq -url /top2 txreq -url /top2
rxresp rxresp
...@@ -111,11 +109,10 @@ client c1 { ...@@ -111,11 +109,10 @@ client c1 {
expect resp.http.was == true expect resp.http.was == true
expect resp.http.filters == "pesi" expect resp.http.filters == "pesi"
# see Note on Range above
txreq -url "/esi" -hdr "Range: bytes=1-2" txreq -url "/esi" -hdr "Range: bytes=1-2"
rxresp rxresp
expect resp.bodylen == 76 expect resp.bodylen == 2
expect resp.status == 200 expect resp.status == 206
expect resp.http.was == true expect resp.http.was == true
expect resp.http.filters == "pesi range" expect resp.http.filters == "pesi range"
...@@ -126,11 +123,10 @@ client c1 { ...@@ -126,11 +123,10 @@ client c1 {
expect resp.http.was == true expect resp.http.was == true
expect resp.http.filters == "pesi gunzip" expect resp.http.filters == "pesi gunzip"
# see Note on Range above
txreq -url "/recurse" -hdr "Range: bytes=1-2" txreq -url "/recurse" -hdr "Range: bytes=1-2"
rxresp rxresp
expect resp.bodylen == 120 expect resp.bodylen == 2
expect resp.status == 200 expect resp.status == 206
expect resp.http.was == true expect resp.http.was == true
expect resp.http.filters == "pesi gunzip range" expect resp.http.filters == "pesi gunzip range"
} -run } -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