Commit 1be63404 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Forgot to commit with with the bugfix

Fixes: #686



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5534 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3d6123d1
# $Id$
test "Check that cache-control headers are collapsed"
server s1 {
rxreq
txresp -hdr "Cache-Control: foo" -hdr "Cache-control: bar" -bodylen 4
} -start
varnish v1 -vcl+backend {
sub vcl_deliver {
set resp.http.Foo = req.http.cache-control;
}
} -start
client c1 {
txreq -hdr "Cache-Control: froo" -hdr "Cache-control: boz"
rxresp
expect resp.http.foo == "froo, boz"
expect resp.http.cache-control == "foo, bar"
expect resp.status == 200
} -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