From 335ff385c5c6660660ad88f0e9b9bbbc3b5062cb Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Mon, 30 Oct 2023 13:12:59 +0800 Subject: [PATCH] fix: scheduler ping/pong response mime --- pkg/scheduler/handler/ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/handler/ping.go b/pkg/scheduler/handler/ping.go index a0c7a3992c..7e274caad7 100644 --- a/pkg/scheduler/handler/ping.go +++ b/pkg/scheduler/handler/ping.go @@ -42,7 +42,7 @@ func pingHandler(c *gin.Context) { } log.Infof("%v", c.Request.Body) - c.JSON(http.StatusOK, "pong") + c.String(http.StatusOK, "pong") } // switchHandler is a handler of switch service that just for