remove testing changes

This commit is contained in:
odysseusmax 2021-05-22 19:36:23 +05:30
parent c3e7fbaaff
commit 504a1785d1
1 changed files with 0 additions and 12 deletions

View File

@ -26,17 +26,6 @@ from .config import (
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
def inspect_rep():
@web.middleware
async def factory(request, handler):
print("Incoming Cookies", request.cookies)
response = await handler(request)
print("Outgoing Cookies", response.cookies)
return response
return factory
class Indexer: class Indexer:
TEMPLATES_ROOT = pathlib.Path(__file__).parent / "templates" TEMPLATES_ROOT = pathlib.Path(__file__).parent / "templates"
@ -44,7 +33,6 @@ class Indexer:
def __init__(self): def __init__(self):
self.server = web.Application( self.server = web.Application(
middlewares=[ middlewares=[
inspect_rep(),
middleware_factory(), middleware_factory(),
] ]
) )