httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1163849 - /httpd/test/framework/trunk/t/apache/byterange3.t
Date Wed, 31 Aug 2011 22:34:32 GMT
Author: sf
Date: Wed Aug 31 22:34:32 2011
New Revision: 1163849

URL: http://svn.apache.org/viewvc?rev=1163849&view=rev
Log:
Make sure to not send ranges with start > end, as these are invalid

Modified:
    httpd/test/framework/trunk/t/apache/byterange3.t

Modified: httpd/test/framework/trunk/t/apache/byterange3.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/byterange3.t?rev=1163849&r1=1163848&r2=1163849&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/byterange3.t (original)
+++ httpd/test/framework/trunk/t/apache/byterange3.t Wed Aug 31 22:34:32 2011
@@ -38,6 +38,10 @@ sub verify {
         my $e20 = $end-10;
         #my $range = "bytes=$total-$end";
         my $range = "bytes=$t10-$end,$total-$e1,$t10-$e20,$total-$e1";
+        if ($end - $total < 15) {
+            # make sure to not send invalid ranges with start > end
+            $range = "bytes=$total-$end";
+        }
         $req->header(Range => $range);
 
         print $req->as_string if $debug;



Mime
View raw message