diff options
-rw-r--r-- | module/network/HTTPChunk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index 54cb79b1c..c4bf1d64c 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -153,7 +153,7 @@ class HTTPChunk(HTTPRequest): if not self.arrived + self.range[0] - self.range[1]: return None if self.id == len(self.p.info.chunks) - 1: #as last chunk dont set end range, so we get everything - range = "%i-" % self.arrived + self.range[0] + range = "%i-" % (self.arrived + self.range[0]) else: range = "%i-%i" % (self.arrived + self.range[0], min(self.range[1] + 1, self.p.size - 1)) |