Skip to content

Commit d4e5abb

Browse files
committed
mgmt - use content_type text/plain
c.f. aio-libs/aiohttp#11580
1 parent 7c84b23 commit d4e5abb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

acmetk/server/management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ async def management_certificate(self, request: aiohttp.web.Request):
393393
a = r.scalars().first()
394394
context = {"certificate": a.cert, "cryptography": cryptography}
395395
response = aiohttp_jinja2.render_template("certificate.jinja2", request, context)
396-
response.content_type = "text"
396+
response.content_type = "text/plain"
397397
response.charset = "utf-8"
398398
return response
399399

@@ -407,6 +407,6 @@ async def management_csr(self, request: aiohttp.web.Request):
407407
a = r.scalars().first()
408408
context = {"csr": a.csr, "cryptography": cryptography}
409409
response = aiohttp_jinja2.render_template("csr.jinja2", request, context)
410-
response.content_type = "text"
410+
response.content_type = "text/plain"
411411
response.charset = "utf-8"
412412
return response

0 commit comments

Comments
 (0)