equal
deleted
inserted
replaced
31 HTTP_UNSUPPORTED_MEDIA_TYPE = hgwebcommon.HTTP_UNSUPPORTED_MEDIA_TYPE |
31 HTTP_UNSUPPORTED_MEDIA_TYPE = hgwebcommon.HTTP_UNSUPPORTED_MEDIA_TYPE |
32 |
32 |
33 eh = exthelper.exthelper() |
33 eh = exthelper.exthelper() |
34 |
34 |
35 |
35 |
36 @eh.wrapfunction(wireprotoserver, b'handlewsgirequest') |
36 @eh.wrapfunction(wireprotoserver, 'handlewsgirequest') |
37 def handlewsgirequest(orig, rctx, req, res, checkperm): |
37 def handlewsgirequest(orig, rctx, req, res, checkperm): |
38 """Wrap wireprotoserver.handlewsgirequest() to possibly process an LFS |
38 """Wrap wireprotoserver.handlewsgirequest() to possibly process an LFS |
39 request if it is left unprocessed by the wrapped method. |
39 request if it is left unprocessed by the wrapped method. |
40 """ |
40 """ |
41 if orig(rctx, req, res, checkperm): |
41 if orig(rctx, req, res, checkperm): |