Mercurial > hg > mercurial-crew-with-dirclash
changeset 3552:ca24144ed850
Force the content-length header to be a string in httprepo.unbundle.
(Needed for Python2.3 compatibility)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 27 Oct 2006 18:30:53 +0200 |
parents | 9073d7366776 |
children | 3bab1fc0ab75 |
files | mercurial/httprepo.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: