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