changeset 10525:cc2d296c1d4c stable

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.
author Sune Foldager <cryo@cyanite.org>
date Mon, 22 Feb 2010 16:28:57 +0100
parents 3212afb33116
children 72d3a02c62e6
files mercurial/httprepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: