From 86de330da7e265a18886bd9e147aceb271f9623a Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Jun 2008 12:41:51 +0000 Subject: [PATCH] Test for HTTP/1.0 (EOF) transmission git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2835 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/b00011.vtc | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/b00011.vtc diff --git a/varnish-cache/bin/varnishtest/tests/b00011.vtc b/varnish-cache/bin/varnishtest/tests/b00011.vtc new file mode 100644 index 00000000..cc43db7d --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/b00011.vtc @@ -0,0 +1,24 @@ +# $Id$ + +test "Check HTTP/1.0 EOF transmission" + +varnish v1 -arg "-h simple_list -b 127.0.0.1:9080" -start + +server s1 { + rxreq + txresp -hdr "Connection: close" + send "Body line 1\n" + send "Body line 2\n" + send "Body line 3\n" +} + +server s1 -start + +client c1 { + txreq -url "/" + rxresp + expect resp.status == 200 + expect resp.http.content-length == 36 +} + +client c1 -run -- 2.39.5