--- /dev/null
+# $Id: c00015.vtc 2906 2008-07-08 10:29:07Z phk $
+
+test "Test Connection header handling"
+
+server s1 {
+ rxreq
+ expect req.url == "/foo"
+ expect req.http.Foo == "bar"
+ txresp -hdr "Bar: foo" -body "foobar"
+
+ rxreq
+ expect req.url == "/bar"
+ expect req.http.Foo == "req.http.Foo"
+ txresp -hdr "Bar: foo" -hdr "Connection: bar" -body "foobar"
+} -start
+
+varnish v1 -vcl+backend { } -start
+
+client c1 {
+ txreq -url "/foo" -hdr "Foo: bar"
+ rxresp
+ expect resp.http.Bar == "foo"
+
+ txreq -url "/bar" -hdr "Foo: bar2" -hdr "Connection: Foo"
+ rxresp
+ expect req.http.Bar == "req.http.Bar"
+} -start