equal
deleted
inserted
replaced
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', |