Mercurial > public > mercurial-scm > hg
comparison mercurial/httprepo.py @ 10526:72d3a02c62e6 stable
httprepo: send Content-Type instead of content-type
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Mon, 22 Feb 2010 23:12:12 -0500 |
parents | cc2d296c1d4c |
children | 2e1a9b811d13 |
comparison
equal
deleted
inserted
replaced
10525:cc2d296c1d4c | 10526:72d3a02c62e6 |
---|---|
229 fp = url.httpsendfile(tempname, "rb") | 229 fp = url.httpsendfile(tempname, "rb") |
230 try: | 230 try: |
231 try: | 231 try: |
232 resp = self.do_read( | 232 resp = self.do_read( |
233 'unbundle', data=fp, | 233 'unbundle', data=fp, |
234 headers={'content-type': 'application/mercurial-0.1'}, | 234 headers={'Content-Type': 'application/mercurial-0.1'}, |
235 heads=' '.join(map(hex, heads))) | 235 heads=' '.join(map(hex, heads))) |
236 resp_code, output = resp.split('\n', 1) | 236 resp_code, output = resp.split('\n', 1) |
237 try: | 237 try: |
238 ret = int(resp_code) | 238 ret = int(resp_code) |
239 except ValueError, err: | 239 except ValueError, err: |