1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Fix header client. Simplify code.

This commit is contained in:
Sascha L. Teichmann 2023-03-24 13:40:31 +01:00
parent 8f87273837
commit 0c2768b711
6 changed files with 9 additions and 18 deletions

View file

@ -83,7 +83,7 @@ func (hc *HeaderClient) Head(url string) (*http.Response, error) {
// Post implements the respective method of the [Client] interface.
func (hc *HeaderClient) Post(url, contentType string, body io.Reader) (*http.Response, error) {
req, err := http.NewRequest(http.MethodPost, url, nil)
req, err := http.NewRequest(http.MethodPost, url, body)
if err != nil {
return nil, err
}