Content type
All checks were successful
Build Base Application / Build (push) Successful in 1m55s

This commit is contained in:
retoor 2025-01-27 23:56:59 +01:00
parent ebc8e4c8ee
commit ef4bc87383

View File

@ -127,7 +127,9 @@ class BaseApplication(RPCApplication):
return await handler(request)
async def render_template(self, name, request=None, context=None):
return aiohttp_jinja2.render_template(name, request, context)
response = aiohttp_jinja2.render_template(name, request, context)
response.headers['Content-Type'] = 'text/html'
return response
@web.middleware
async def request_middleware(self, request: web.Request, handler):