varnishtest "zero length ESI include segmens with chunked encoding"

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

varnish 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
