# HG changeset patch # User Thomas Arendsen Hein # Date 1161966653 -7200 # Node ID ca24144ed850fcdc62600c7ec97f66adf53b9935 # Parent 9073d7366776d4ece49669ffc50d5da39cccd356 Force the content-length header to be a string in httprepo.unbundle. (Needed for Python2.3 compatibility) diff -r 9073d7366776 -r ca24144ed850 mercurial/httprepo.py --- a/mercurial/httprepo.py Fri Oct 27 18:20:28 2006 +0200 +++ b/mercurial/httprepo.py Fri Oct 27 18:30:53 2006 +0200 @@ -339,7 +339,7 @@ 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: