bugfix
This commit is contained in:
parent
f2dd89de45
commit
a4a18a5ca8
@ -400,6 +400,7 @@ class ProcessorResource(StaticResource,Url2File):
|
|||||||
if config.website.startswiths:
|
if config.website.startswiths:
|
||||||
for a in config.website.startswiths:
|
for a in config.website.startswiths:
|
||||||
if path.startswith(a.leading):
|
if path.startswith(a.leading):
|
||||||
|
path = self.entireUrl(request, path)
|
||||||
processor = FunctionProcessor(path,self,a)
|
processor = FunctionProcessor(path,self,a)
|
||||||
return processor
|
return processor
|
||||||
|
|
||||||
@ -420,10 +421,11 @@ class ProcessorResource(StaticResource,Url2File):
|
|||||||
|
|
||||||
def websocketUrl(self, request, url):
|
def websocketUrl(self, request, url):
|
||||||
|
|
||||||
url = entireUrl(request, url)
|
url = self.entireUrl(request, url)
|
||||||
if url.startswith('https'):
|
if url.startswith('https'):
|
||||||
return 'wss' + url[5:]
|
return 'wss' + url[5:]
|
||||||
return 'ws' + url[4:]
|
return 'ws' + url[4:]
|
||||||
|
|
||||||
def urlWebsocketify(self, url):
|
def urlWebsocketify(self, url):
|
||||||
if url.endswith('.ws') or url.endswith('.wss'):
|
if url.endswith('.ws') or url.endswith('.wss'):
|
||||||
if url.startswith('https'):
|
if url.startswith('https'):
|
||||||
|
Loading…
Reference in New Issue
Block a user