Fix content type for status routes

This commit is contained in:
Jacob Gunther
2022-08-25 01:39:32 -05:00
parent 1d23a97732
commit f83e2ee07b

View File

@@ -35,7 +35,7 @@ func JavaStatusHandler(ctx *fiber.Ctx) error {
ctx.Set("X-Cache-Time-Remaining", strconv.Itoa(int(expiresAt.Seconds()))) 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 { 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()))) 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 { func IconHandler(ctx *fiber.Ctx) error {