Skip to content

Commit

Permalink
fixed python 2.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
racitup committed Oct 3, 2017
1 parent 9ecc1dc commit 85fa557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static_ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def response_disabled_cb(instat, inheaders, exc_info=None):
elif len(priv.ranges) == 1:
rng = priv.ranges[0]
extra_headers = [
(self.header_content_range, 'bytes {}-{}/{}'.format(*rng, priv.file_size)),
(self.header_content_range, 'bytes {}-{}/{}'.format(rng[0], rng[1], priv.file_size)),
(self.header_content_length, '{}'.format(rng[1] - rng[0] + 1)),
]
start_response(self.status_206, priv.start_response_args[1] + extra_headers, priv.start_response_args[2])
Expand Down

0 comments on commit 85fa557

Please sign in to comment.