From e36548d7f34bc27ac358f9ae2b6ebb86afd7069d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 6 Apr 2023 16:20:19 +0800 Subject: [PATCH] bugfix --- ahserver/auth_api.py | 1 + ahserver/processorResource.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py index 1be4901..33faaf2 100644 --- a/ahserver/auth_api.py +++ b/ahserver/auth_api.py @@ -38,6 +38,7 @@ class AuthAPI(AppLogger): include_ip=True) # setup aiohttp_auth.auth middleware in aiohttp fashion + # print('policy = ', policy) auth.setup(app, policy) app.middlewares.append(self.checkAuth) app.router.add_route('GET', '/logout', self.logout) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 7fcff4b..3037241 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -315,10 +315,6 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): processor = FunctionProcessor(path,self,a) return processor - if self.request_filename is None: - self.error('%s:not found' % str(request.url)) - raise HTTPNotFound - for word, handlername in self.y_processors: if fpath.endswith(word): Klass = getProcessor(handlername)