vtest "zero length ESI include segments with chunked encoding"

server s1 {
	rxreq
	expect req.url == "/"
	txresp -body {<foo><esi:include src="/bar"/><bar>}
	rxreq
	expect req.url == "/bar"
	txresp
} -start

vinyl v1 -arg "-p feature=+esi_disable_xml_check" -vcl+backend {
	sub vcl_backend_response {
		set beresp.do_esi = true;
	}
} -start

client c1 {
	txreq
	rxresp
	expect resp.bodylen == 10
} -run
