]> err.no Git - varnish/commitdiff
Add regression test for #400
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 18 Dec 2008 11:30:17 +0000 (11:30 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 18 Dec 2008 11:30:17 +0000 (11:30 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3471 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/r00400.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/r00400.vtc b/varnish-cache/bin/varnishtest/tests/r00400.vtc
new file mode 100644 (file)
index 0000000..9ba702f
--- /dev/null
@@ -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