Fix content type for status routes
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user