Fix health check to declare itself text/plain and match Prosody

This commit is contained in:
Matthew Wild
2021-03-10 14:54:01 +00:00
parent c70228fed7
commit 03732ac06b

View File

@@ -165,5 +165,5 @@ async def avatar(from_: str, code: str) -> quart.Response:
return response
@bp.route("/_health")
async def health() -> str:
return "OK"
async def health() -> Response:
return Response("STATUS OK", content_type="text/plain")