[6.0] 9cf1ae9bd Exercise ESI with gzip support disabled
Federico G. Schwindt
fgsch at lodoss.net
Thu Aug 16 08:52:22 UTC 2018
commit 9cf1ae9bdecf2e95c986a360ecf0dec0de2a4d67
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Fri Mar 23 11:39:31 2018 -0300
Exercise ESI with gzip support disabled
Related to #2626.
diff --git a/bin/varnishtest/tests/e00031.vtc b/bin/varnishtest/tests/e00031.vtc
new file mode 100644
index 000000000..8089633b4
--- /dev/null
+++ b/bin/varnishtest/tests/e00031.vtc
@@ -0,0 +1,21 @@
+varnishtest "ESI with http_gzip_support off"
+
+server s1 {
+ rxreq
+ txresp -gzipbody {<esi:include src="/foo">}
+ rxreq
+ txresp -gzipbody "bar"
+} -start
+
+varnish v1 -arg "-p http_gzip_support=off" -vcl+backend {
+ sub vcl_backend_response {
+ set beresp.do_esi = true;
+ }
+} -start
+
+client c1 {
+ txreq
+ rxresp
+ gunzip
+ expect resp.body == "bar"
+} -run
More information about the varnish-commit
mailing list