From 59988e9f72197149bc31f63a7cebf48f49cf690f Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 25 Jun 2008 09:58:43 +0000 Subject: [PATCH] Add regression test for ticket 262 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2800 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/r00262.vtc | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/r00262.vtc diff --git a/varnish-cache/bin/varnishtest/tests/r00262.vtc b/varnish-cache/bin/varnishtest/tests/r00262.vtc new file mode 100644 index 00000000..ce48dfcf --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/r00262.vtc @@ -0,0 +1,29 @@ +# $Id$ + +test "Test that inter-request whitespace trimming works" + +server s1 { + rxreq + txresp \ + -hdr "Connection: close" \ + -body "012345\n" +} + +varnish v1 -arg "-p session_linger=20" -vcl+backend { } -start + +server s1 -start + +client c1 { + send "GET / HTTP/1.1\r\n\r\n\r\n" + + rxresp + expect resp.status == 200 + expect resp.http.X-Varnish == "1001" + + send "GET / HTTP/1.1\r\n\r\n" + rxresp + expect resp.status == 200 + expect resp.http.X-Varnish == "1002 1001" +} + +client c1 -run -- 2.39.5