Mercurial > public > mercurial-scm > hg
comparison mercurial/httprepo.py @ 14245:13d44e4235f8
httprepo: send 100-continue on POSTs if using http2
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 02 May 2011 12:10:50 -0500 |
parents | e7525a555a64 |
children | f0c43c63f742 |
comparison
equal
deleted
inserted
replaced
14244:e7525a555a64 | 14245:13d44e4235f8 |
---|---|
73 def _callstream(self, cmd, **args): | 73 def _callstream(self, cmd, **args): |
74 if cmd == 'pushkey': | 74 if cmd == 'pushkey': |
75 args['data'] = '' | 75 args['data'] = '' |
76 data = args.pop('data', None) | 76 data = args.pop('data', None) |
77 headers = args.pop('headers', {}) | 77 headers = args.pop('headers', {}) |
78 | |
79 if data and self.ui.configbool('ui', 'usehttp2', False): | |
80 headers['Expect'] = '100-Continue' | |
81 | |
78 self.ui.debug("sending %s command\n" % cmd) | 82 self.ui.debug("sending %s command\n" % cmd) |
79 q = [('cmd', cmd)] | 83 q = [('cmd', cmd)] |
80 headersize = 0 | 84 headersize = 0 |
81 if len(args) > 0: | 85 if len(args) > 0: |
82 httpheader = self.capable('httpheader') | 86 httpheader = self.capable('httpheader') |