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/09/01 00:34:32 UTC

svn commit: r1163849 - /httpd/test/framework/trunk/t/apache/byterange3.t

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;