[master] 64bb593 Regression test for #861

Poul-Henning Kamp phk at varnish-cache.org
Tue Feb 15 11:29:47 CET 2011


commit 64bb593d57e88c0a01a96944c8bac45217efa462
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Feb 15 10:29:20 2011 +0000

    Regression test for #861

diff --git a/bin/varnishtest/tests/r00861.vtc b/bin/varnishtest/tests/r00861.vtc
new file mode 100644
index 0000000..b9329a9
--- /dev/null
+++ b/bin/varnishtest/tests/r00861.vtc
@@ -0,0 +1,29 @@
+# $Id$
+
+test "Regression test for ESI/Gzip issues in #861"
+
+server s1 {
+	rxreq
+	expect req.url == "/1"
+	txresp -body {<H1><esi:include src="/foo"/><H2><esi:include src="/bar"/><H3>}
+	rxreq
+	expect req.url == "/foo"
+	txresp -body  <FOO>
+	rxreq
+	expect req.url == "/bar"
+	txresp -body <BAR>
+} -start
+
+varnish v1 \
+	-vcl+backend {
+		sub vcl_fetch {
+			set beresp.do_esi = true;
+			set beresp.do_gzip = true;
+		}
+	} -start
+
+client c1 {
+	txreq -url "/1"
+	rxresp
+} -run
+



More information about the varnish-commit mailing list