varnishtest "POST with no body"

server s1 {
	rxreq
	txresp -hdr "foo: 1"
	rxreq
	txresp -nolen -hdr "foo: 2" -hdr "Transfer-Encoding: chunked"
	chunkedlen 0
} -start

varnish v1 -vcl+backend {} -start

client c1 {
	txreq -req "POST" -nolen
	rxresp
	expect resp.http.foo == 1
	txreq -req "POST" -nolen
	rxresp
	expect resp.http.foo == 2
} -run
