master
yumoqing 2024-02-18 16:24:17 +08:00
parent 2721e9d426
commit 8eb0394140
1 changed files with 2 additions and 1 deletions

View File

@ -288,7 +288,6 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
path = path_decode(dp)
return await file_download(request, path)
# processor = self.url2processor(request, str(request.url))
processor = self.url2processor(request, str(request.url), self.request_filename)
if processor:
ret = await processor.handle(request)
@ -352,8 +351,10 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
return processor
if real_path is None:
print(f'real_path is None ..., {url=}, {fpath=}')
return None
if fpath is None:
print(f'fpath is None ..., {url=}, {fpath=}')
return None
for word, handlername in self.y_processors:
if fpath.endswith(word):