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