fixed line to long notice

This commit is contained in:
Kyle Blöm 2017-01-27 08:00:41 -08:00
parent 4dff52de0e
commit 2e2840a031

View File

@ -152,9 +152,9 @@ class ContentRangeHandler:
self.end = None self.end = None
self.headers = dict() self.headers = dict()
self.total = stats.st_size self.total = stats.st_size
range_header = request.headers.get('Range') _range = request.headers.get('Range')
if range_header: if _range:
self.start, self.end = ContentRangeHandler.parse_range(range_header) self.start, self.end = ContentRangeHandler.parse_range(_range)
if self.start is not None and self.end is not None: if self.start is not None and self.end is not None:
self.size = self.end - self.start self.size = self.end - self.start
elif self.end is not None: elif self.end is not None: