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)