Show More
@@ -26,7 +26,8 b' class httprangereader(object):' | |||
|
26 | 26 | end = '' |
|
27 | 27 | if bytes: |
|
28 | 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 | 32 | try: |
|
32 | 33 | f = self.opener.open(req) |
General Comments 0
You need to be logged in to leave comments.
Login now