##// END OF EJS Templates
hgweb: move call to protocol handler outside of try..except...
Gregory Szorc -
r36003:e69e65b2 default
parent child Browse files
Show More
@@ -368,7 +368,6 b' class hgweb(object):'
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 protohandler['dispatch']()
372 except ErrorResponse as inst:
371 except ErrorResponse as inst:
373 # A client that sends unbundle without 100-continue will
372 # A client that sends unbundle without 100-continue will
374 # break if we respond early.
373 # break if we respond early.
@@ -383,6 +382,8 b' class hgweb(object):'
383 body='0\n%s\n' % inst)
382 body='0\n%s\n' % inst)
384 return ''
383 return ''
385
384
385 return protohandler['dispatch']()
386
386 # translate user-visible url structure to internal structure
387 # translate user-visible url structure to internal structure
387
388
388 args = query.split('/', 2)
389 args = query.split('/', 2)
General Comments 0
You need to be logged in to leave comments. Login now