mercurial/httprepo.py
changeset 5336 24de027551c1
parent 5255 65dc707606ed
parent 5333 6e6a00a7bf75
child 5476 b3afa6725082
--- a/mercurial/httprepo.py
+++ b/mercurial/httprepo.py
@@ -298,8 +298,7 @@ class httprepository(remoterepository):
         cu = "%s%s" % (self._url, qs)
         try:
             if data:
-                self.ui.debug(_("sending %s bytes\n") %
-                              headers.get('content-length', 'X'))
+                self.ui.debug(_("sending %s bytes\n") % len(data))
             resp = urllib2.urlopen(request(cu, data, headers))
         except urllib2.HTTPError, inst:
             if inst.code == 401: