varnishtest "Check <esi: detector"

server s1 {
	rxreq
	expect req.url == "/foo"
	send "HTTP/1.0 200 OK\n"
	send "Connection: close\n"
	send "\n"
	send {           <a>   <esi/>                          }
} -start

varnish v1 -vcl+backend {
	sub vcl_backend_response {
		set beresp.do_esi = true;
	}
} -start

varnish v1 -cliok "debug.fragfetch 4"

client c1 {
	txreq -url /foo
	rxresp
	expect resp.bodylen == 49
} -run

varnish v1 -expect esi_errors == 0
