commit - dad28b1a8f4f17dd47854db715221aa985024cef
commit + b74ab3b391ccb35e2941c6d15039804dfbcd55f4
blob - 810fea563b939b4c0aa461ae72c010838d6bea8e
blob + c7f730409869f703b332b37ba6f706015bb6e09b
--- http.go
+++ http.go
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
)
type Client struct {
- host string
- username string
- password string
+ host string
+ username string
+ password string
*http.Client
}