From 03732ac06bf57b1a51d7f21ae88e7441298695e5 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 10 Mar 2021 14:54:01 +0000 Subject: [PATCH] Fix health check to declare itself text/plain and match Prosody --- snikket_web/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snikket_web/main.py b/snikket_web/main.py index f14ec5a..eeb9406 100644 --- a/snikket_web/main.py +++ b/snikket_web/main.py @@ -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")