mercurial/hgweb/hgweb_mod.py
changeset 35857 a42455b3dbf8
parent 35856 ef3a24a023ec
child 35982 5a56bf4180ad
equal deleted inserted replaced
35856:ef3a24a023ec 35857:a42455b3dbf8
   366             try:
   366             try:
   367                 if query:
   367                 if query:
   368                     raise ErrorResponse(HTTP_NOT_FOUND)
   368                     raise ErrorResponse(HTTP_NOT_FOUND)
   369                 if cmd in perms:
   369                 if cmd in perms:
   370                     self.check_perm(rctx, req, perms[cmd])
   370                     self.check_perm(rctx, req, perms[cmd])
   371                 return wireprotoserver.call(rctx.repo, req, cmd)
   371                 return wireprotoserver.callhttp(rctx.repo, req, cmd)
   372             except ErrorResponse as inst:
   372             except ErrorResponse as inst:
   373                 # A client that sends unbundle without 100-continue will
   373                 # A client that sends unbundle without 100-continue will
   374                 # break if we respond early.
   374                 # break if we respond early.
   375                 if (cmd == 'unbundle' and
   375                 if (cmd == 'unbundle' and
   376                     (req.env.get('HTTP_EXPECT',
   376                     (req.env.get('HTTP_EXPECT',