From bb537a155a25ec4ca7daaf2c62c90088b1252770 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 18 Feb 2024 16:05:40 +0800 Subject: [PATCH] bugfix --- ahserver/baseProcessor.py | 1 + ahserver/processorResource.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index 679402d..6616a50 100755 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -153,6 +153,7 @@ class TemplateProcessor(BaseProcessor): class BricksUIProcessor(TemplateProcessor): @classmethod def isMe(self,name): + print(f'{name} is a bui") return name=='bui' async def datahandle(self, request): diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 52ef240..aebdfb2 100755 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -294,18 +294,15 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): ret = await processor.handle(request) return ret - f_cnt6 = current_fileno() if self.request_filename and await self.isHtml(self.request_filename): return await self.html_handle(request, self.request_filename) - f_cnt7 = current_fileno() if self.request_filename and os.path.isdir(self.request_filename): config = getConfig() if not config.website.allowListFolder: self.error('%s:not found' % str(request.url)) raise HTTPNotFound - # print(f'{self.request_filename=}, {str(request.url)=}') - f_cnt8 = current_fileno() + print(f'{self.request_filename=}, {str(request.url)=} handle as a normal file') return await super()._handle(request) def gethost(self, request):