From e0dec54c6abd1c191912ef9c2ee02c463658f62c Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Mon, 19 Aug 2024 21:14:31 +0300 Subject: [PATCH] Fix method name --- utils/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/http.go b/utils/http.go index ac48700b4..46194feca 100644 --- a/utils/http.go +++ b/utils/http.go @@ -16,7 +16,7 @@ const ( // Get - When err is nil, resp always contains a non-nil resp.Body. // Caller should close resp.Body when done reading from it. func Get(url string, client *http.Client) (*http.Response, error) { - req, err := http.NewRequest(http.MethodPost, url, nil) + req, err := http.NewRequest(http.MethodGet, url, nil) if err != nil { return nil, err }