From 564b8e802f85e0dab929b7f523dd8489a03546cf Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 22 Dec 2024 15:06:05 +0800 Subject: [PATCH] bugfix --- ahserver/filedownload.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ahserver/filedownload.py b/ahserver/filedownload.py index 97c7ade..d7f0557 100644 --- a/ahserver/filedownload.py +++ b/ahserver/filedownload.py @@ -8,6 +8,7 @@ from aiohttp.web import StreamResponse from aiohttp import web from appPublic.rc4 import RC4 from appPublic.registerfunction import RegisterFunction +from appPublic.log import debug from .filestorage import FileStorage crypto_aim = 'God bless USA and others' @@ -55,9 +56,11 @@ async def file_download(request, filepath, content_type=None): raise HTTPNotFound async def path_download(request, kw, *params): + debug(f'path_download(): {kw=}, {params=}') path = kw.get('path') fs = FileStorage() fp = fs.realPath(path) + debug(f'path_download():download filename={fp}') return await file_download(request, fp) rf = RegisterFunction()