Searched refs:range_string (Results 1 – 2 of 2) sorted by relevance
243 def parse_ranges(range_string): argument259 range_string = range_string.strip()260 if not range_string:263 if "inf" in range_string:264 range_string = re.sub(r"inf", repr(sys.float_info.max), range_string)266 ranges = ast.literal_eval(range_string)
1055 range_string = 'bytes */%s' % self.total_size1057 range_string = 'bytes %s-%s/%s' % (start, self.total_size - 1,1060 request.headers['Content-Range'] = range_string1108 range_string = 'bytes %s-%s/*' % (start, end - 1)1111 range_string = 'bytes */%s' % self.total_size1114 range_string = 'bytes %s-%s/%s' % (start, end - 1, self.total_size)1116 request.headers['Content-Range'] = range_string