vtest "ESI Cookie"

server s1 {
	fatal
	rxreq
	expect req.http.cookie == "Foo=Bar; B=C"
	txresp -body "<html><esi:include src='/esi_test'/>"

	rxreq
	expect req.http.cookie == "Foo=Bar; B=C"
	txresp
} -start

vinyl v1 -cliok {param.set feature +http2}
vinyl v1 -cliok {param.set debug +syncvsl}


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

client c1 {
	stream 1 {
		txreq -url "/" -hdr cookie "Foo=Bar" -hdr cookie "B=C"
		rxresp
	} -start
} -run
