Show More
@@ -129,8 +129,9 b' class hgweb(object):' | |||||
129 | # A client that sends unbundle without 100-continue will |
|
129 | # A client that sends unbundle without 100-continue will | |
130 | # break if we respond early. |
|
130 | # break if we respond early. | |
131 | if (cmd == 'unbundle' and |
|
131 | if (cmd == 'unbundle' and | |
132 | req.env.get('HTTP_EXPECT', |
|
132 | (req.env.get('HTTP_EXPECT', | |
133 |
'').lower() != '100-continue') |
|
133 | '').lower() != '100-continue') or | |
|
134 | req.env.get('X-HgHttp2', '')): | |||
134 | req.drain() |
|
135 | req.drain() | |
135 | req.respond(inst, protocol.HGTYPE) |
|
136 | req.respond(inst, protocol.HGTYPE) | |
136 | return '0\n%s\n' % inst.message |
|
137 | return '0\n%s\n' % inst.message |
@@ -78,6 +78,7 b' class httprepository(wireproto.wirerepos' | |||||
78 |
|
78 | |||
79 | if data and self.ui.configbool('ui', 'usehttp2', False): |
|
79 | if data and self.ui.configbool('ui', 'usehttp2', False): | |
80 | headers['Expect'] = '100-Continue' |
|
80 | headers['Expect'] = '100-Continue' | |
|
81 | headers['X-HgHttp2'] = '1' | |||
81 |
|
82 | |||
82 | self.ui.debug("sending %s command\n" % cmd) |
|
83 | self.ui.debug("sending %s command\n" % cmd) | |
83 | q = [('cmd', cmd)] |
|
84 | q = [('cmd', cmd)] |
General Comments 0
You need to be logged in to leave comments.
Login now