sub vcl_fetch {
esi;
}
-} -start
+} -start -cliok "param.set esi_syntax 4"
client c1 {
txreq
rxresp
expect resp.status == 200
+ expect resp.bodylen == 35
}
client c1 -run
txreq
rxresp
expect resp.status == 200
+ expect resp.bodylen == 35
}
client c1 -run
client c1 {
txreq
rxresp
+ expect resp.bodylen == 65
expect resp.status == 200
}
txreq
rxresp
expect resp.status == 200
+ expect resp.bodylen == 67
}
client c1 -run
txreq -url /foo/bar
rxresp
expect resp.status == 200
+ expect resp.bodylen == 67
}
client c1 -run
txreq -url /foo/bar -hdr "Host: froboz"
rxresp
expect resp.status == 200
+ expect resp.bodylen == 67
}
client c1 -run
txreq
rxresp
expect resp.status == 200
+ expect resp.bodylen == 231
}
client c1 -run
txreq
rxresp
expect resp.status == 200
+ expect resp.bodylen == 72
expect resp.http.content-length == 72
} -run
txreq -url bar
rxresp
expect resp.status == 200
+ expect resp.bodylen == 37
expect resp.http.transfer-encoding == "chunked"
} -run
client c1 {
txreq -url /foo
rxresp
+ expect resp.bodylen == 49
} -run
varnish v1 -expect esi_parse == 0