Skip to content
Snippets Groups Projects
Commit 988974c2 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

httprepo: ensure Content-Type header exists when pushing data

Otherwise the wireprotocol just hangs while trying to send data. (And
nothing is received at the other side)
parent bdac214a
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,9 @@
elif data is not None:
size = len(data)
headers = args.pop('headers', {})
if data is not None and 'Content-Type' not in headers:
headers['Content-Type'] = 'application/mercurial-0.1'
if size and self.ui.configbool('ui', 'usehttp2', False):
headers['Expect'] = '100-Continue'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment