Show More
@@ -26,7 +26,8 b' class httprangereader(object):' | |||||
26 | end = '' |
|
26 | end = '' | |
27 | if bytes: |
|
27 | if bytes: | |
28 | end = self.pos + bytes - 1 |
|
28 | end = self.pos + bytes - 1 | |
29 | req.add_header('Range', 'bytes=%d-%s' % (self.pos, end)) |
|
29 | if self.pos or end: | |
|
30 | req.add_header('Range', 'bytes=%d-%s' % (self.pos, end)) | |||
30 |
|
31 | |||
31 | try: |
|
32 | try: | |
32 | f = self.opener.open(req) |
|
33 | f = self.opener.open(req) |
General Comments 0
You need to be logged in to leave comments.
Login now