vtest "Regression test for #387: too long chunk header"

server s1 {
	rxreq
	non_fatal
	send "HTTP/1.1 200 OK\r\n"
	send "Transfer-encoding: chunked\r\n"
	send "\r\n"
	send "004\r\n1234\r\n"
	send "1000000000000000000001\r\n@\r\n"
	send "00000000\r\n"
	send "\r\n"
} -start

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

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