# HG changeset patch # User Matt Mackall # Date 1339536038 18000 # Node ID dea63b30ddd6797eee13026280dcbca4b00efccc # Parent 989f1e4f74c6ececb28445b86d271dd0bb60f005# Parent d9238286964ee5baf8d52728a9c44968553b747d merge with stable diff -r 989f1e4f74c6 -r dea63b30ddd6 mercurial/statichttprepo.py --- 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)