From 9b6872bdd93e04ad926643ef4e7583d63e011a1f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 20 Dec 2024 17:06:55 +0800 Subject: [PATCH] bugfix --- ahserver/filedownload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ahserver/filedownload.py b/ahserver/filedownload.py index 20c0eaf..97c7ade 100644 --- a/ahserver/filedownload.py +++ b/ahserver/filedownload.py @@ -60,7 +60,8 @@ async def path_download(request, kw, *params): fp = fs.realPath(path) return await file_download(request, fp) -rf = RegisterFunction('download_path', path_download) +rf = RegisterFunction() +rf.register('download_path', path_download)