Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Need to check RFCs
  • Loading branch information
alex-eri authored Mar 9, 2017
1 parent c03dcc0 commit 8e8ad67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiohttp/file_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ def send(self, request, filepath):
# If a range request has been made, convert start, end slice notation
# into file pointer offset and count
if start is not None or end is not None:
status = HTTPPartialContent.status_code
if start > 0 or end:
status = HTTPPartialContent.status_code
if start is None and end < 0: # return tail of file
start = file_size + end
count = -end
Expand Down

0 comments on commit 8e8ad67

Please sign in to comment.