This commit is contained in:
yumoqing 2023-07-18 15:33:14 +08:00
parent dc1b5162fa
commit ee72f8a8cd

View File

@ -359,7 +359,7 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
if self.request_filename and os.path.isdir(self.request_filename): if self.request_filename and os.path.isdir(self.request_filename):
path = '%s/oops' % path path = '%s/oops' % path
p = self.relatedurl(path,url) p = self.relatedurl(path,url)
schema = request.headers.get('X-Forward-Scheme') or request.scheme scheme = request.headers.get('X-Forward-Scheme') or request.scheme
return '%s://%s%s' % (scheme, h, p) return '%s://%s%s' % (scheme, h, p)
async def path_call(self, request, path, params={}): async def path_call(self, request, path, params={}):