equal
deleted
inserted
replaced
156 if (cmd == 'unbundle' and |
156 if (cmd == 'unbundle' and |
157 (req.env.get('HTTP_EXPECT', |
157 (req.env.get('HTTP_EXPECT', |
158 '').lower() != '100-continue') or |
158 '').lower() != '100-continue') or |
159 req.env.get('X-HgHttp2', '')): |
159 req.env.get('X-HgHttp2', '')): |
160 req.drain() |
160 req.drain() |
161 req.respond(inst, protocol.HGTYPE) |
161 req.respond(inst, protocol.HGTYPE, |
162 return '0\n%s\n' % inst.message |
162 body='0\n%s\n' % inst.message) |
|
163 return '' |
163 |
164 |
164 # translate user-visible url structure to internal structure |
165 # translate user-visible url structure to internal structure |
165 |
166 |
166 args = query.split('/', 2) |
167 args = query.split('/', 2) |
167 if 'cmd' not in req.form and args and args[0]: |
168 if 'cmd' not in req.form and args and args[0]: |