vtest "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

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

vinyl v1 -cliok "debug.fragfetch 4"

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

vinyl v1 -expect esi_errors == 0
