diff --git a/examples/httpc/main.go b/examples/httpc/main.go index f50ec9a..db2be4f 100644 --- a/examples/httpc/main.go +++ b/examples/httpc/main.go @@ -21,7 +21,7 @@ func main() { c.JSON(http.StatusInternalServerError, touka.H{"error": err.Error()}) return } - c.String(http.StatusOK, body) + c.String(http.StatusOK, "%s", body) }) // 示例 2:带 Header 的 POST 请求 @@ -90,7 +90,7 @@ func main() { c.JSON(http.StatusInternalServerError, touka.H{"error": err.Error()}) return } - c.String(http.StatusOK, body) + c.String(http.StatusOK, "%s", body) }) fmt.Println("Server running on :8080")