mercurial/hgweb/hgweb_mod.py
changeset 18352 e33b9b92a200
parent 18258 bebb05a7e249
child 18429 e9ea0f0f05e7
equal deleted inserted replaced
18351:3fbdbeab38cc 18352:e33b9b92a200
   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]: