From 2e2840a0318bab27df8bd276ab4948319d2cb3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kyle=20Bl=C3=B6m?= Date: Fri, 27 Jan 2017 08:00:41 -0800 Subject: [PATCH] fixed line to long notice --- sanic/response.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sanic/response.py b/sanic/response.py index dee0f5bc..b8ea5ee8 100644 --- a/sanic/response.py +++ b/sanic/response.py @@ -152,9 +152,9 @@ class ContentRangeHandler: self.end = None self.headers = dict() self.total = stats.st_size - range_header = request.headers.get('Range') - if range_header: - self.start, self.end = ContentRangeHandler.parse_range(range_header) + _range = request.headers.get('Range') + if _range: + self.start, self.end = ContentRangeHandler.parse_range(_range) if self.start is not None and self.end is not None: self.size = self.end - self.start elif self.end is not None: