Automated update of Base Application package.
This commit is contained in:
parent
ef4bc87383
commit
fb42dba59f
BIN
dist/app-1.0.0-py3-none-any.whl
vendored
BIN
dist/app-1.0.0-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/app-1.0.0.tar.gz
vendored
BIN
dist/app-1.0.0.tar.gz
vendored
Binary file not shown.
@ -128,9 +128,9 @@ class BaseApplication(RPCApplication):
|
|||||||
|
|
||||||
async def render_template(self, name, request=None, context=None):
|
async def render_template(self, name, request=None, context=None):
|
||||||
response = aiohttp_jinja2.render_template(name, request, context)
|
response = aiohttp_jinja2.render_template(name, request, context)
|
||||||
response.headers['Content-Type'] = 'text/html'
|
response.headers["Content-Type"] = "text/html"
|
||||||
return response
|
return response
|
||||||
|
|
||||||
@web.middleware
|
@web.middleware
|
||||||
async def request_middleware(self, request: web.Request, handler):
|
async def request_middleware(self, request: web.Request, handler):
|
||||||
time_start = time.time()
|
time_start = time.time()
|
||||||
|
Loading…
Reference in New Issue
Block a user