From: phk Date: Thu, 18 Dec 2008 11:30:17 +0000 (+0000) Subject: Add regression test for #400 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=502d967c4b3bb0e003077999cf047dd156624444;p=varnish Add regression test for #400 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3471 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/r00400.vtc b/varnish-cache/bin/varnishtest/tests/r00400.vtc new file mode 100644 index 00000000..9ba702f9 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/r00400.vtc @@ -0,0 +1,21 @@ +# $Id$ + +test "Regression test for ticket 409" + +server s1 { + rxreq + expect req.url == "/" + send "HTTP/1.0 400 Not funny\r\n" + send "\r\n" + send "12345\r\n" +} -start + +varnish v1 -vcl+backend { +} -start + +client c1 { + txreq + rxresp + expect resp.status == 400 + expect resp.bodylen == 7 +} -run