From 502d967c4b3bb0e003077999cf047dd156624444 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 18 Dec 2008 11:30:17 +0000 Subject: [PATCH] Add regression test for #400 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3471 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/r00400.vtc | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/r00400.vtc 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 -- 2.39.5