author | Matt Mackall <mpm@selenic.com> |
Tue, 12 Jun 2012 16:20:38 -0500 | |
changeset 16947 | dea63b30ddd6 |
parent 16945 | 989f1e4f74c6 (current diff) |
parent 16946 | d9238286964e (diff) |
child 16948 | a0cbbf78c31a |
--- a/mercurial/statichttprepo.py Fri Jun 01 11:15:00 2012 -0300 +++ b/mercurial/statichttprepo.py Tue Jun 12 16:20:38 2012 -0500 @@ -26,7 +26,8 @@ end = '' if bytes: end = self.pos + bytes - 1 - req.add_header('Range', 'bytes=%d-%s' % (self.pos, end)) + if self.pos or end: + req.add_header('Range', 'bytes=%d-%s' % (self.pos, end)) try: f = self.opener.open(req)