##// END OF EJS Templates
httprepo: ensure Content-Type header exists when pushing data...
Pierre-Yves.David@ens-lyon.org -
r17221:988974c2 default
parent child Browse files
Show More
@@ -79,6 +79,9 b' class httppeer(wireproto.wirepeer):'
79 elif data is not None:
79 elif data is not None:
80 size = len(data)
80 size = len(data)
81 headers = args.pop('headers', {})
81 headers = args.pop('headers', {})
82 if data is not None and 'Content-Type' not in headers:
83 headers['Content-Type'] = 'application/mercurial-0.1'
84
82
85
83 if size and self.ui.configbool('ui', 'usehttp2', False):
86 if size and self.ui.configbool('ui', 'usehttp2', False):
84 headers['Expect'] = '100-Continue'
87 headers['Expect'] = '100-Continue'
General Comments 0
You need to be logged in to leave comments. Login now