bugfix
This commit is contained in:
parent
2721e9d426
commit
8eb0394140
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user