hgext/lfs/wireprotolfsserver.py
changeset 50786 dde4b55a0785
parent 48875 6000f5b25c9b
child 50928 d718eddf01d9
equal deleted inserted replaced
50785:bf92386f76fd 50786:dde4b55a0785
    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):