Fix method name

This commit is contained in:
M. Mert Yildiran 2024-08-19 21:14:31 +03:00
parent 17ce638a78
commit e0dec54c6a
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -16,7 +16,7 @@ const (
// Get - When err is nil, resp always contains a non-nil resp.Body. // Get - When err is nil, resp always contains a non-nil resp.Body.
// Caller should close resp.Body when done reading from it. // Caller should close resp.Body when done reading from it.
func Get(url string, client *http.Client) (*http.Response, error) { 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 { if err != nil {
return nil, err return nil, err
} }