[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRangeSupport.py:1.4

Martijn Pieters mj@zope.com
Tue, 4 Dec 2001 17:51:11 -0500


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv31710/lib/python/ZPublisher

Modified Files:
	HTTPRangeSupport.py 
Log Message:
Merge HTTP Ranges fix from Zope 2.4 branch


=== Zope/lib/python/ZPublisher/HTTPRangeSupport.py 1.3 => 1.4 ===
 
     Optimisation is done by first expanding relative start values and open
-    ends, then sorting and combining overlapping or adjacent ranges. We also
-    remove unsatisfiable ranges (where the start lies beyond the size of the
-    resource).
+    ends, then sorting and combining overlapping ranges. We also remove
+    unsatisfiable ranges (where the start lies beyond the size of the resource).
 
     """
 
@@ -126,8 +125,8 @@
     
     while ranges:
         nextstart, nextend = ranges.pop()
-        # If the next range overlaps or is adjacent
-        if nextstart <= end:
+        # If the next range overlaps
+        if nextstart < end:
             # If it falls within the current range, discard
             if nextend <= end:
                 continue