varnishtest "Regression test for duplicate content-length in pass"

server s1 {
	rxreq
	txresp \
		-hdr "Date: Mon, 25 Oct 2010 06:34:06 GMT" \
		-hdr "Content-length: 000010" \
		-nolen -bodylen 10
} -start


varnish v1 -vcl+backend {
	sub vcl_recv { return (pass); }
	sub vcl_backend_response {
		set beresp.do_stream = false;
		unset beresp.http.content-length;
	}
} -start

client c1 {
	txreq
	rxresp
	expect resp.http.content-length == "10"
} -run
