From 8217ac3ed09dc6d937d897fe637ab128f3e75d8c Mon Sep 17 00:00:00 2001 From: RoyUP9 <87927115+RoyUP9@users.noreply.github.com> Date: Thu, 3 Mar 2022 12:23:09 +0200 Subject: [PATCH] Switched echo to return json (#874) --- agent/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/main.go b/agent/main.go index b0012605c..245135fee 100644 --- a/agent/main.go +++ b/agent/main.go @@ -86,7 +86,7 @@ func hostApi(socketHarOutputChannel chan<- *tapApi.OutputChannelItem) *gin.Engin app := gin.Default() app.GET("/echo", func(c *gin.Context) { - c.String(http.StatusOK, "Here is Mizu agent") + c.JSON(http.StatusOK, "Here is Mizu agent") }) eventHandlers := api.RoutesEventHandlers{