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)
964 range_string = 'bytes */%s' % self.total_size966 range_string = 'bytes %s-%s/%s' % (start, self.total_size - 1,969 request.headers['Content-Range'] = range_string1008 range_string = 'bytes %s-%s/*' % (start, end - 1)1011 range_string = 'bytes */%s' % self.total_size1014 range_string = 'bytes %s-%s/%s' % (start, end - 1, self.total_size)1016 request.headers['Content-Range'] = range_string