[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRangeSupport.py:1.3.2.1
Martijn Pieters
mj@zope.com
Tue, 4 Dec 2001 17:42:29 -0500
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv29464/lib/python/ZPublisher
Modified Files:
Tag: Zope-2_5-branch
HTTPRangeSupport.py
Log Message:
Merge HTTP Ranges fix from 2.4 branch
=== Zope/lib/python/ZPublisher/HTTPRangeSupport.py 1.3 => 1.3.2.1 ===
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