varnishtest "#1356, req.body failure"

server s1 {
	rxreqhdrs
	expect_close
} -start

varnish v1 -vcl+backend { } -start

client c1 {
	txreq -req POST -nolen -hdr "Transfer-Encoding: carrier-pigeon"
	rxresp
	expect resp.status == 400
} -run

client c1 {
	txreq -req POST -nolen -hdr "Content-Length: carrier-pigeon"
	rxresp
	expect resp.status == 400
} -run

client c1 {
	txreq -req POST -nolen -hdr "Content-Length: 56"
} -run

# Check that varnishd still runs

server s1 {
	rxreq
	txresp
} -start

client c1 {
	txreq
	rxresp
	expect resp.status == 200
} -run
