This commit is contained in:
yumoqing 2024-12-25 10:53:32 +08:00
parent f2dd89de45
commit a4a18a5ca8

View File

@ -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'):