[master] 924d67d Add test case for #1602

Poul-Henning Kamp phk at FreeBSD.org
Mon Oct 6 12:17:23 CEST 2014


commit 924d67d6c0373d8538bf70364928bd073ddb1709
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Oct 6 10:17:04 2014 +0000

    Add test case for #1602

diff --git a/bin/varnishtest/tests/r01602.vtc b/bin/varnishtest/tests/r01602.vtc
new file mode 100644
index 0000000..993bdaa
--- /dev/null
+++ b/bin/varnishtest/tests/r01602.vtc
@@ -0,0 +1,22 @@
+varnishtest "Test case for #1602"
+
+server s1 {
+	rxreq
+	expect req.url == "/bar"
+	txresp -gzipbody {<esi:include src="/foo"/>}
+	rxreq
+	expect req.url == "/foo"
+	txresp -hdr "Content-Encoding: gzip"
+} -start
+
+varnish v1 -vcl+backend {
+	sub vcl_backend_response {
+		set beresp.do_esi = true;
+	}
+} -start
+
+client c1 {
+	txreq -url /bar -hdr "Accept-Encoding: gzip"
+	rxresp
+	expect resp.status == 200
+} -run



More information about the varnish-commit mailing list