289
281
content += self._multipart_byterange(part, start, boundary,
294
286
self._file = response.RangeFile('Multiple_ranges_file',
303
288
# Ranges are set by decoding the range headers, the RangeFile user is
304
289
# supposed to call the following before using seek or read since it
305
290
# requires knowing the *response* headers (in that case the boundary
306
291
# which is part of the Content-Type header).
309
298
def _multipart_byterange(self, data, offset, boundary, file_size='*'):
310
299
"""Encode a part of a file as a multipart/byterange MIME type.