From b1ec095e0ddb6fc3ebfe2f8659c1c72c0f65860f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 9 Jan 2011 21:20:15 +0100 Subject: fixed resume --- module/network/HTTPChunk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module') diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index 89770769f..54cb79b1c 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.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)) -- cgit v1.2.3