mercurial/httprepo.py
changeset 3552 ca24144ed850
parent 3551 9073d7366776
child 3553 3bab1fc0ab75
--- a/mercurial/httprepo.py
+++ b/mercurial/httprepo.py
@@ -339,7 +339,7 @@ class httprepository(remoterepository):
             try:
                 rfp = self.do_cmd(
                     'unbundle', data=fp,
-                    headers={'content-length': length,
+                    headers={'content-length': str(length),
                              'content-type': 'application/octet-stream'},
                     heads=' '.join(map(hex, heads)))
                 try: