[master] c614d62 Test case for #1627

Federico G. Schwindt fgsch at lodoss.net
Sat Nov 15 11:14:29 CET 2014


commit c614d62e2c75429d48e4a404a67679f2a4d3d018
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sat Nov 15 10:14:06 2014 +0000

    Test case for #1627

diff --git a/bin/varnishtest/tests/r01627.vtc b/bin/varnishtest/tests/r01627.vtc
new file mode 100644
index 0000000..ee1bc28
--- /dev/null
+++ b/bin/varnishtest/tests/r01627.vtc
@@ -0,0 +1,20 @@
+varnishtest "#1627, wrong CL for gzipped+streamed content with HTTP/1.0 client"
+
+server s1 {
+	rxreq
+	txresp -body "Testing"
+} -start
+
+varnish v1 -vcl+backend {
+	sub vcl_backend_response {
+		set beresp.do_stream = true;
+		set beresp.do_gzip = true;
+	}
+} -start
+
+client c1 {
+	txreq -proto "HTTP/1.0" -hdr "Accept-Encoding: gzip"
+	rxresp
+	gunzip
+	expect resp.bodylen == 7
+} -run



More information about the varnish-commit mailing list