From b1ba449db6a58ee46365c7db911bc526b0753f19 Mon Sep 17 00:00:00 2001 From: yh-noh Date: Wed, 14 Oct 2026 06:53:24 +0000 Subject: [PATCH] =?UTF-8?q?fix(cli):=20mcc=20rest=20post=EA=B0=80=20GET=20?= =?UTF-8?q?=EB=8C=80=EC=8B=A0=20POST=20=EC=9A=94=EC=B2=AD=EC=9D=84=20?= =?UTF-8?q?=EB=B3=B4=EB=82=B4=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rest post 명령이 req.Post 대신 req.Get을 호출해 POST 요청이 GET으로 전송되고 -d 본문도 빠지던 문제를 수정한다. (TC-ADMIN-014 / IV0_S14) --- src/cmd/rest/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/rest/post.go b/src/cmd/rest/post.go index fcb21368..2f023e3d 100644 --- a/src/cmd/rest/post.go +++ b/src/cmd/rest/post.go @@ -30,7 +30,7 @@ var restPostCmd = &cobra.Command{ } url := args[0] - resp, err := req.Get(url) + resp, err := req.Post(url) if err != nil { fmt.Println("Error:", err) return