This commit is contained in:
yumoqing 2024-02-17 19:31:58 +08:00
parent 05b96e89ab
commit e62fd1548d

View File

@ -389,7 +389,7 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
prepath = f'/{prepath}'
h = self.gethost(request)
if url.startswith('/'):
return f'{scheme}://{h}:{port}{url}{prepath}'
return f'{scheme}://{h}:{port}{prepath}{url}'
path = request.path
if self.request_filename and os.path.isdir(self.request_filename):
path = '%s/oops' % path