[master] 9cf1ae9 Exercise ESI with gzip support disabled
Federico G. Schwindt
fgsch at lodoss.net
Fri Mar 23 14:57:10 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 0000000..8089633
--- /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