From c0535c621621a7a1e977493679e6e4f3f667ac3e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 18 Jul 2023 15:41:05 +0800 Subject: [PATCH] bugfix --- ahserver/processorResource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index a5c3b93..8eaae6a 100755 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -359,7 +359,7 @@ 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) - scheme = request.headers.get('X-Forward-Scheme') or request.scheme + scheme = request.headers.get('X-Forwarded-Scheme') or request.scheme return '%s://%s%s' % (scheme, h, p) async def path_call(self, request, path, params={}):