From f83e2ee07b7e5dbaf2eb5de305c07c4c223dbe5b Mon Sep 17 00:00:00 2001 From: Jacob Gunther Date: Thu, 25 Aug 2022 01:39:32 -0500 Subject: [PATCH] Fix content type for status routes --- src/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes.go b/src/routes.go index a8390ae..cf7eb33 100644 --- a/src/routes.go +++ b/src/routes.go @@ -35,7 +35,7 @@ func JavaStatusHandler(ctx *fiber.Ctx) error { ctx.Set("X-Cache-Time-Remaining", strconv.Itoa(int(expiresAt.Seconds()))) } - return ctx.SendString(response) + return ctx.Type("json").SendString(response) } func BedrockStatusHandler(ctx *fiber.Ctx) error { @@ -55,7 +55,7 @@ func BedrockStatusHandler(ctx *fiber.Ctx) error { ctx.Set("X-Cache-Time-Remaining", strconv.Itoa(int(expiresAt.Seconds()))) } - return ctx.SendString(response) + return ctx.Type("json").SendString(response) } func IconHandler(ctx *fiber.Ctx) error {