From dc1b5162fa5d786ccae591bf669049278331d928 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 18 Jul 2023 15:27:57 +0800 Subject: [PATCH] bugfix --- ahserver/processorResource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index af87062..3c1f5d7 100755 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -359,7 +359,8 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): if self.request_filename and os.path.isdir(self.request_filename): path = '%s/oops' % path p = self.relatedurl(path,url) - return '%s://%s%s' % (request.scheme, h, p) + schema = request.headers.get('X-Forward-Scheme') or request.scheme + return '%s://%s%s' % (scheme, h, p) async def path_call(self, request, path, params={}): url = self.entireUrl(request, path)