Merge branch 'master' of github.com:yumoqing/ahserver
This commit is contained in:
commit
66116f313c
@ -278,7 +278,7 @@ class ProcessorResource(StaticResource,Url2File):
|
|||||||
config = getConfig()
|
config = getConfig()
|
||||||
url = self.entireUrl(request, url)
|
url = self.entireUrl(request, url)
|
||||||
host = '/'.join(str(request.url).split('/')[:3])
|
host = '/'.join(str(request.url).split('/')[:3])
|
||||||
path = request.path #url[len(host):].split('?')[0]
|
path = url[len(host):].split('?')[0]
|
||||||
real_path = self.abspath(request, path)
|
real_path = self.abspath(request, path)
|
||||||
if config.website.startswiths:
|
if config.website.startswiths:
|
||||||
for a in config.website.startswiths:
|
for a in config.website.startswiths:
|
||||||
@ -309,8 +309,9 @@ class ProcessorResource(StaticResource,Url2File):
|
|||||||
p = self.relatedurl(path,url)
|
p = self.relatedurl(path,url)
|
||||||
return '%s://%s%s' % (request.scheme, h, p)
|
return '%s://%s%s' % (request.scheme, h, p)
|
||||||
|
|
||||||
async def path_call(self,request, path, params={}):
|
async def path_call(self, request, path, params={}):
|
||||||
url = self.entireUrl(request, path)
|
url = self.entireUrl(request, path)
|
||||||
|
|
||||||
fpath = self.url2file(url)
|
fpath = self.url2file(url)
|
||||||
processor = self.url2processor(request, url, fpath)
|
processor = self.url2processor(request, url, fpath)
|
||||||
return await processor.path_call(request, params=params)
|
return await processor.path_call(request, params=params)
|
||||||
|
Loading…
Reference in New Issue
Block a user