[4.0] 2f97e7d Test case for #1627
Lasse Karstensen
lkarsten at varnish-software.com
Thu Jan 15 16:35:42 CET 2015
commit 2f97e7d5dfb987f9c7a84707986b2faeb0ac7923
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