Mercurial > hg
changeset 16947:dea63b30ddd6
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Jun 2012 16:20:38 -0500 |
parents | 989f1e4f74c6 (current diff) d9238286964e (diff) |
children | a0cbbf78c31a |
files | |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)