This commit is contained in:
yumoqing 2024-08-06 18:02:26 +08:00
parent 734a8c210c
commit 9c04b7c50e

View File

@ -18,11 +18,11 @@ class FunctionProcessor(BaseProcessor):
async def path_call(self, request, path):
path1 = request.path[len(self.config_opts['leading']):]
args = []
args = [request]
if len(path1) > 0:
if path1[0] == '/':
path1 = path1[1:]
args = path1.split('/')
args += path1.split('/')
rfname = self.config_opts['registerfunction']