Skip to content

Commit

Permalink
It is OK to ask for one byte. Apparently Chrome keeps doing this quit…
Browse files Browse the repository at this point in the history
…e often.
  • Loading branch information
Tronic committed Nov 16, 2023
1 parent a5a9658 commit 31a4064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/handlers/content_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, request: Request, stats: os.stat_result) -> None:
# this case represents `Content-Range: bytes -5`
self.start = self.total - self.end
self.end = self.total - 1
if self.start >= self.end:
if self.start > self.end:
raise RangeNotSatisfiable(
"Invalid for Content Range parameters", self
)
Expand Down

0 comments on commit 31a4064

Please sign in to comment.