mercurial/statichttprepo.py
branchstable
changeset 16882 a2d6e336e9cc
parent 16115 236bb604dc39
child 17156 7034365089bf
--- a/mercurial/statichttprepo.py	Wed Jun 06 21:17:20 2012 -0500
+++ b/mercurial/statichttprepo.py	Sat Jun 09 19:13:24 2012 -0600
@@ -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)