[master] e33cb2f Test for range request "bytes=0-"
Dag Haavi Finstad
daghf at varnish-software.com
Mon Jan 25 13:42:50 CET 2016
commit e33cb2faceb788e6a9a13e12867fce649423a054
Author: Ondřej Nový <ondrej.novy at firma.seznam.cz>
Date: Tue Jan 12 18:37:36 2016 +0100
Test for range request "bytes=0-"
This (useless) range request is send by Chrome with HTML5 Video.
This was not working correctly in 4.0 and was fixed somewhere
in master.
diff --git a/bin/varnishtest/tests/c00034.vtc b/bin/varnishtest/tests/c00034.vtc
index 2b440c9..1344fe2 100644
--- a/bin/varnishtest/tests/c00034.vtc
+++ b/bin/varnishtest/tests/c00034.vtc
@@ -112,9 +112,15 @@ client c1 {
expect resp.status == 206
expect resp.bodylen == 100
expect resp.http.content-range == "bytes 0-99/100"
+
+ txreq -hdr "Range: bytes=0-"
+ rxresp
+ expect resp.status == 206
+ expect resp.bodylen == 100
+ expect resp.http.content-range == "bytes 0-99/100"
} -run
-varnish v1 -expect s_resp_bodybytes == 401
+varnish v1 -expect s_resp_bodybytes == 501
# Test Range streaming with streaming objects with C-L
More information about the varnish-commit
mailing list