You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2011/08/27 14:28:00 UTC
svn commit: r1162330 - in /httpd/test/framework/trunk/t/apache: byterange.t
byterange3.t
Author: sf
Date: Sat Aug 27 12:28:00 2011
New Revision: 1162330
URL: http://svn.apache.org/viewvc?rev=1162330&view=rev
Log:
If the whole file is requested in one range, a 200 response is ok
Modified:
httpd/test/framework/trunk/t/apache/byterange.t
httpd/test/framework/trunk/t/apache/byterange3.t
Modified: httpd/test/framework/trunk/t/apache/byterange.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/byterange.t?rev=1162330&r1=1162329&r2=1162330&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/byterange.t (original)
+++ httpd/test/framework/trunk/t/apache/byterange.t Sat Aug 27 12:28:00 2011
@@ -40,6 +40,10 @@ sub verify {
my($start, $end, $total_bytes) = ($1, $2, $3);
$total += ($end - $start) + 1;
}
+ elsif ($total == 0 && $end == $wanted &&
+ $content_range eq 'NONE' && $res->code == 200) {
+ $total += $wanted;
+ }
else {
print "Range: $range\n";
print "Content-Range: $content_range\n";
Modified: httpd/test/framework/trunk/t/apache/byterange3.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/byterange3.t?rev=1162330&r1=1162329&r2=1162330&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/byterange3.t (original)
+++ httpd/test/framework/trunk/t/apache/byterange3.t Sat Aug 27 12:28:00 2011
@@ -45,6 +45,10 @@ sub verify {
my($start, $end, $total_bytes) = ($1, $2, $3);
$total += ($end - $start) + 1;
}
+ elsif ($total == 0 && $end == $wanted &&
+ $content_range eq 'NONE' && $res->code == 200) {
+ $total += $wanted;
+ }
else {
print "Range: $range\n";
print "Content-Range: $content_range\n";