From 0d53a47e65774ac6d141c0025e0fc36a066f8835 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 30 Jul 2026 14:32:41 +0800 Subject: [PATCH] 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. --- ahserver/processorResource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 8a939f7..d1b7c57 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -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)