Revision 15d465b8 pithos/api/util.py

b/pithos/api/util.py
582 582
        if len(check) > 0:
583 583
            raise RangeNotSatisfiable('Requested range exceeds object limits')
584 584
        ret = 206
585
        if_range = request.META.get('HTTP_IF_RANGE', '')
586
        if if_range and if_range.startswith('If-Range:'):
587
            if_range = if_range.split('If-Range:')[1]
585
        if_range = request.META.get('HTTP_IF_RANGE')
586
        if if_range:
588 587
            try:
589
                # modification time has passed instead
588
                # Modification time has passed instead.
590 589
                last_modified = parse_http_date(if_range)
591 590
                if last_modified != meta['modified']:
592 591
                    ranges = [(0, size)]

Also available in: Unified diff