From 7a72cd0ae99c70d394979c0e7e824a8363639fdd Mon Sep 17 00:00:00 2001 From: Noy <59097122+noyyyy@users.noreply.github.com> Date: Wed, 25 Oct 2023 19:49:35 +0800 Subject: [PATCH] fix: get cid should use post --- internal/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 1787c8d..90f1706 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -33,7 +33,7 @@ func createTempDirWithFile(f []string) (*os.File, error) { } func GetCID(url string, payload io.Reader) (*http.Response, error) { - req, err := http.NewRequest(http.MethodGet, url, payload) + req, err := http.NewRequest(http.MethodPost, url, payload) if err != nil { return nil, fmt.Errorf("Error creating HTTP request: %s", err) }