fix: skip static fast path for /idfile/ virtual paths
/idfile/ files (mp4, etc.) are managed by FileStorage, not disk files. Static fast path sent them to StaticResource._handle() which crashed with ERR_INVALID_RESPONSE because the files don't exist on disk. Added /idfile/ exclusion to route them through normal processor chain.
This commit is contained in:
parent
6165795aa7
commit
0d53a47e65
@ -210,7 +210,8 @@ class ProcessorResource(StaticResource,Url2File):
|
||||
'.svg', '.woff', '.woff2', '.ttf', '.eot', '.map',
|
||||
'.webp', '.bmp', '.mp3', '.mp4', '.webm', '.ogg', '.wav')
|
||||
path_lower = request.path.lower()
|
||||
if any(path_lower.endswith(ext) for ext in static_exts):
|
||||
# /idfile/ is virtual file storage, not a disk path — skip static fast track
|
||||
if any(path_lower.endswith(ext) for ext in static_exts) and not path_lower.startswith('/idfile/'):
|
||||
self.parse_request(request)
|
||||
return await super()._handle(request)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user