[master] 7c14e6a Enable range support by default

Poul-Henning Kamp phk at varnish-cache.org
Thu Feb 17 21:22:04 CET 2011


commit 7c14e6a42f214615187caeac3cd6b5ac1b5c56dc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Feb 17 20:21:53 2011 +0000

    Enable range support by default

diff --git a/bin/varnishd/mgt_param.c b/bin/varnishd/mgt_param.c
index 1c49879..ac1e92b 100644
--- a/bin/varnishd/mgt_param.c
+++ b/bin/varnishd/mgt_param.c
@@ -812,7 +812,7 @@ static const struct parspec input_parspec[] = {
 	{ "http_range_support", tweak_bool, &master.http_range_support, 0, 0,
 		"Enable support for HTTP Range headers.\n",
 		EXPERIMENTAL,
-		"off", "bool" },
+		"on", "bool" },
 	{ "http_gzip_support", tweak_bool, &master.http_gzip_support, 0, 0,
 		"Enable gzip support. When enabled Varnish will compress "
 		"uncompressed objects before they are stored in the cache. "
diff --git a/bin/varnishtest/tests/c00034.vtc b/bin/varnishtest/tests/c00034.vtc
index 0636639..3ec70df 100644
--- a/bin/varnishtest/tests/c00034.vtc
+++ b/bin/varnishtest/tests/c00034.vtc
@@ -9,6 +9,7 @@ server s1 {
 
 varnish v1 -vcl+backend {
 } -start
+varnish v1 -cliok "param.set http_range_support off"
 
 client c1 {
 	txreq -hdr "Range: bytes=0-9"



More information about the varnish-commit mailing list