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:
parent
8f87273837
commit
0c2768b711
6 changed files with 9 additions and 18 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue