From 390190695fe77e2c79dd2b1b4ac15e57e1d87864 Mon Sep 17 00:00:00 2001 From: wjqserver <114663932+WJQSERVER@users.noreply.github.com> Date: Wed, 22 Apr 2026 08:51:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20examples/httpc=20?= =?UTF-8?q?=E4=B8=AD=20c.String=20=E9=9D=9E=E5=B8=B8=E9=87=8F=20format=20s?= =?UTF-8?q?tring=20=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/httpc/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")