From a4a18a5ca88f85e44625a89a727702f8be983582 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 25 Dec 2024 10:53:32 +0800 Subject: [PATCH] bugfix --- ahserver/processorResource.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 4a0d134..b33b358 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -400,6 +400,7 @@ class ProcessorResource(StaticResource,Url2File): if config.website.startswiths: for a in config.website.startswiths: if path.startswith(a.leading): + path = self.entireUrl(request, path) processor = FunctionProcessor(path,self,a) return processor @@ -420,10 +421,11 @@ class ProcessorResource(StaticResource,Url2File): def websocketUrl(self, request, url): - url = entireUrl(request, url) + url = self.entireUrl(request, url) if url.startswith('https'): return 'wss' + url[5:] return 'ws' + url[4:] + def urlWebsocketify(self, url): if url.endswith('.ws') or url.endswith('.wss'): if url.startswith('https'):