varnishtest "ESI test with no ESI content"


server s1 {
	rxreq
	txresp -body {
		-This is a test: Hello world
	}
} -start

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

logexpect l1 -v v1 -g raw {
	expect * * ESI_xmlerror esi_disable_xml_check
} -start

client c1 {
	txreq
	rxresp
	expect resp.status == 200
	expect resp.bodylen == 33
}

client c1 -run
logexpect l1 -wait
varnish v1 -expect esi_errors == 0
