Merge branch 'main' into alt-releaser

This commit is contained in:
David Allen 2023-09-15 08:48:18 -06:00 committed by GitHub
commit 4c45afce8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 39 additions and 45 deletions

View file

@ -7,7 +7,6 @@ import (
"net/http"
)
func MakeRequest(url string, httpMethod string, body []byte, headers map[string]string) (*http.Response, []byte, error) {
// url := getSmdEndpointUrl(endpoint)
req, _ := http.NewRequest(httpMethod, url, bytes.NewBuffer(body))
@ -25,4 +24,4 @@ func MakeRequest(url string, httpMethod string, body []byte, headers map[string]
return nil, nil, fmt.Errorf("could not read response body: %v", err)
}
return res, b, err
}
}