r5534 - trunk/varnish-cache/bin/varnishtest/tests
phk at varnish-cache.org
phk at varnish-cache.org
Thu Nov 11 10:13:23 CET 2010
Author: phk
Date: 2010-11-11 10:13:23 +0100 (Thu, 11 Nov 2010)
New Revision: 5534
Added:
trunk/varnish-cache/bin/varnishtest/tests/r00686.vtc
Log:
Forgot to commit with with the bugfix
Fixes: #686
Added: trunk/varnish-cache/bin/varnishtest/tests/r00686.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00686.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00686.vtc 2010-11-11 09:13:23 UTC (rev 5534)
@@ -0,0 +1,22 @@
+# $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
Property changes on: trunk/varnish-cache/bin/varnishtest/tests/r00686.vtc
___________________________________________________________________
Added: svn:keywords
+ Id
More information about the varnish-commit
mailing list