bugfix
This commit is contained in:
parent
2721e9d426
commit
8eb0394140
@ -288,7 +288,6 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
|
|||||||
path = path_decode(dp)
|
path = path_decode(dp)
|
||||||
return await file_download(request, path)
|
return await file_download(request, path)
|
||||||
|
|
||||||
# processor = self.url2processor(request, str(request.url))
|
|
||||||
processor = self.url2processor(request, str(request.url), self.request_filename)
|
processor = self.url2processor(request, str(request.url), self.request_filename)
|
||||||
if processor:
|
if processor:
|
||||||
ret = await processor.handle(request)
|
ret = await processor.handle(request)
|
||||||
@ -352,8 +351,10 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
|
|||||||
return processor
|
return processor
|
||||||
|
|
||||||
if real_path is None:
|
if real_path is None:
|
||||||
|
print(f'real_path is None ..., {url=}, {fpath=}')
|
||||||
return None
|
return None
|
||||||
if fpath is None:
|
if fpath is None:
|
||||||
|
print(f'fpath is None ..., {url=}, {fpath=}')
|
||||||
return None
|
return None
|
||||||
for word, handlername in self.y_processors:
|
for word, handlername in self.y_processors:
|
||||||
if fpath.endswith(word):
|
if fpath.endswith(word):
|
||||||
|
Loading…
Reference in New Issue
Block a user