Commit d6bcc69b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Test that "Connection:" header deletes http headers in both directions.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2941 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ba6779c9
# $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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment