mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
Force the content-length header to be a string in httprepo.unbundle.
(Needed for Python2.3 compatibility)
This commit is contained in:
parent
a0f9f54446
commit
d3647fdf40
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user