commit b74ab3b391ccb35e2941c6d15039804dfbcd55f4 from: Oliver Lowe date: Thu Dec 30 07:51:01 2021 UTC go fmt commit - dad28b1a8f4f17dd47854db715221aa985024cef commit + b74ab3b391ccb35e2941c6d15039804dfbcd55f4 blob - 810fea563b939b4c0aa461ae72c010838d6bea8e blob + c7f730409869f703b332b37ba6f706015bb6e09b --- http.go +++ http.go @@ -43,7 +43,6 @@ func (c *Client) post(path string, body io.Reader) (*h return c.do(req) } - func (c *Client) put(path string, body io.Reader) (*http.Response, error) { req, err := newRequest(http.MethodPut, c.host, path, body) if err != nil { blob - 9b75770a31822ac754480e6116da1f931d3593f6 blob + 75cbc2e9e9ee0b2dc54816cbccab615657ab52a7 --- icinga.go +++ icinga.go @@ -6,9 +6,9 @@ import ( ) type Client struct { - host string - username string - password string + host string + username string + password string *http.Client }