Skip to content
Snippets Groups Projects
Commit 13d44e42 authored by Augie Fackler's avatar Augie Fackler
Browse files

httprepo: send 100-continue on POSTs if using http2

parent e7525a55
No related merge requests found
......@@ -75,6 +75,10 @@
args['data'] = ''
data = args.pop('data', None)
headers = args.pop('headers', {})
if data and self.ui.configbool('ui', 'usehttp2', False):
headers['Expect'] = '100-Continue'
self.ui.debug("sending %s command\n" % cmd)
q = [('cmd', cmd)]
headersize = 0
......
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