Commit 5bb52ba2 authored by Nils Goroll's avatar Nils Goroll

Test that vcl-set headers do not get filtered via Connection

parent 731f8a20
......@@ -4,22 +4,28 @@ server s1 {
rxreq
expect req.url == "/foo"
expect req.http.Foo == "bar"
expect req.http.FromVCL == "123"
txresp -hdr "Bar: foo" -body "foobar"
rxreq
expect req.url == "/bar"
expect req.http.Foo == <undef>
expect req.http.FromVCL == "123"
txresp -hdr "Bar: fnry,glyf, FOO ,brok" -hdr "Connection: bar" -body "foobar"
} -start
varnish v1 -vcl+backend { } -start
varnish v1 -vcl+backend {
sub vcl_recv {
set req.http.FromVCL = "123";
}
} -start
client c1 {
txreq -url "/foo" -hdr "Foo: bar"
rxresp
expect resp.http.Bar == "foo"
txreq -url "/bar" -hdr "Foo: bar2" -hdr "Connection: foo, close"
txreq -url "/bar" -hdr "Foo: bar2" -hdr "Connection: FromVCL, foo, close"
rxresp
expect req.http.Bar == <undef>
} -run
......
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