httprepo: use content-type application/mercurial-0.1 for POST stable
authorSune Foldager <cryo@cyanite.org>
Mon, 22 Feb 2010 16:28:57 +0100
branchstable
changeset 10525 cc2d296c1d4c
parent 10524 3212afb33116
child 10526 72d3a02c62e6
httprepo: use content-type application/mercurial-0.1 for POST Previously, application/octet-stream was used. The content-type is currently ignored by the server.
mercurial/httprepo.py
--- a/mercurial/httprepo.py	Mon Feb 22 22:55:58 2010 +0100
+++ b/mercurial/httprepo.py	Mon Feb 22 16:28:57 2010 +0100
@@ -231,7 +231,7 @@
             try:
                 resp = self.do_read(
                      'unbundle', data=fp,
-                     headers={'Content-Type': 'application/octet-stream'},
+                     headers={'content-type': 'application/mercurial-0.1'},
                      heads=' '.join(map(hex, heads)))
                 resp_code, output = resp.split('\n', 1)
                 try: